Initializing Variables with the Assignment Operato

Tell us what’s happening:

Your code so far

// Example
var ourVar = 19;
var Initialize'a'=9;

// Only change code below this line

Your browser information:

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

Link to the challenge:

That’s not how it works :slight_smile:

when you initialize a variable, you simply have to declare it with “var” assign it a name and the value it will start with.

In your exemple, it would look like this :

var a = 9;

1 Like