Basic JavaScript - Declare JavaScript Variables

Tell us what’s happening:
Describe your issue in detail here.
I am doing as its saying, but still it is giving error. Why?
Your code so far

var myName = "Rafael";
console.log("myName>>",myName,"myName>>>");

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Declare JavaScript Variables

Link to the challenge:

Just declare the variable, don’t give it a value. You might also need to remove the console log line to make it work

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