Basic JavaScript - Declare JavaScript Variables

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

var ourName = wayne:

Your browser information:

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

Challenge: Basic JavaScript - Declare JavaScript Variables

Link to the challenge:

Hello and welcoem to the community :smiley:!

Text is gonna be a string date type and should therefore be enclosed in a set of quotation marks as the correct syntax for a string data type.
Ex:
var myName = “Esther”
Hope this helps.

2 Likes

Welcome to the community, @wyne!

And use a ; (semicolon) at the end of a JavaScript line, not a : (colon), or you’ll start getting errors. JS doesn’t require semicolons to end lines, but it’s a good habit to get in to.

2 Likes

Thank you for this tip. I’ll keep that in mind when I start my project in a few months time

1 Like

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