Basic JavaScript - Initializing Variables with the Assignment Operator

Tell us what’s happening:
Im pretty sure this is the correct way? Am I doing something wrong?

Your code so far

/**
 var a = 9;
 */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Initializing Variables with the Assignment Operator

Link to the challenge:

1 Like

Hello and welcome to the community :smiley:!

Your code is correct but it shouldn’t be surrounded by those symbols which turn it into a comment.
Remove the extra comment marks around your variable:

Hope this helps.

2 Likes

omg thank you! Something so simple haha

1 Like

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