Team stats project

https://gist.github.com/ce16af4e25b164f292c97cd8f3bdd38f

Hi, can someone help me. It’s keep popping as error. I checked it lot of times looking for syntax errors, checked as well with video in ‘get unstuck’ section, but still couldn’t find what’s wrong. Maybe someone could look at my code and give a feed back on it, please… :sob: :sob: :sob:

I get the following error:

/home/ccuser/workspace/introduction-to-javascript-math-operators/app.js:40
team.addPlayer( "Steph" "Curry" 28 );
                ^^^^^^^
SyntaxError: missing ) after argument list

look at the line involved:

team.addPlayer( "Steph" "Curry" 28 );

I can indeed see a problem. Do you see how you separate the arguments provided in the method/function call? Does that look correct to you?

2 Likes

omg! I was going crazy why it was saying missing ) … and didn’t realized that i forgot commas! Thank you! :relaxed:

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.