Basic JavaScript - Declare JavaScript Variables

I have to Use the var keyword to create a variable called myName .

my code so far


var myname= "christina"

Your browser information:

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

Challenge: Basic JavaScript - Declare JavaScript Variables

Link to the challenge:

Hey, case matters when writing variables in JavaScript.
They are asking you to write it in a convention known as ‘camelCase’, meaning the first letter of a word except the first one should be in upper case.

var myName = "christina" ; 

Hi, thank you for you’re help I have tried this it still does not work

have you tried to use camel case?
Share the new code.

Hey, i was looking at the exercise and it just asks you to make variable called myName, you dont have to give it a value yet. So the ="christina"makes it wrong.

1 Like

Hi, thank you for youre help. It worked :wink:

1 Like

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