[Solved] 5 Tying it All Together--SyntaxError: missing ) after argument list


It says: SyntaxError: missing ) after argument list.

Here is my code:

var greeting = function(name) {console.log(name);}

greeting("Jane"; )

Note that there is not actually a space between the last semicolon and the ) in my code; the forums turned it into :wink: so I put one there.


var greeting = function(name) {

Doesn't matter, you can't put ; before you closed that ). That was your problem.


You mean on the bottom one?

That worked. Thank you! :grin:


Yup. You put ; inside the bottom one function call. :slightly_smiling: