Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Chun Wang](https://secure.gravatar.com/avatar/e10117c1abf163069a2b2b3aa0a0a2ca?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Chun Wang
1,740 Pointsmissing ) after argument list
this is my code on one single line:
alert("Your personal information are as follows:" "Your name is " + name "You are " + age + " years old.");
('name' and 'age' are defined variables) and then I got this error:
Uncaught SyntaxError: missing ) after argument list indicating the line with the above code.
I simply don't see how a ) could be missing?
1 Answer
![Martin Balon](https://uploads.teamtreehouse.com/production/profile-photos/1919402/micro_Untitledd.jpg)
Martin Balon
43,651 PointsHi Chun,
The problem is that you can't pass two or more strings to alert method. If you look closely you can see that after follows: you are closing the string with double quotes and then starting new string. That's why alert method expects ')' after closing the string. All you have to do is to get rid off unnecessary double quotes. Also there was missing + sign so you would get another error - exactly same actually - missing ')'. See the code below.:
alert("Your personal information are as follows: Your name is " + name + ". You are " + age + " years old.");