DEV Community

loading...

Discussion on: Enough JavaScript to get you Started : #11 Functions

Collapse
stormkid2009 profile image
Anwar Ahmed

Hello, this statement in sum function
var res = num1+num2;
You forgot to return res
So sum(2,5) wont return anything

Collapse
whoadarshpandya profile image
Adarsh Pandya Author

Corrected* ! Thanks ahmed :)