Learn Javascript by Example Comments
Comments
-
For each word, you are given, print "Hello {word}!". <- this is a function challenge, not an object challenge!
-
I get: prog.js:12: TypeError: add3 is not a function
I can't understand how the instructions relate to the code. -
If makeAdder doesn't return a function, add3 won't be a function, which will cause that error when the code below treats it as one.
-
function makeAdder(x) {
return function(y) {
return x + y;
};
}
Sam
Nov 1, 10:06 PMawesome tutorial!