Basic JavaScript - Declare JavaScript Variables

it keeps telling me the connect var with MyName
it won’t go through

var = MyName “Brayden”

let OurName = "brayden"

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15

Challenge: Basic JavaScript - Declare JavaScript Variables

Link to the challenge:

You just have to declare a variable named myName.
Follow this syntax for declaring a variable var ourName;

You should write your variable name when declaring the var keyword then you typed your variable name. An example is given below:

var MyName =  "Brayden"; 
let MyNameTwo = "Noman";
const MyNameThree = "Brad";

you can write this variable name but follow camel case rules it’s very understandable. For example:

var myName =  "Brayden"; 
let myNameTwo = "Noman";
const myNameThree = "Brad";

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