Basic JavaScript - Initializing Variables with the Assignment Operator

Tell us what’s happening:

Initializing Variables with the Assignment Operator
It is common to initialize a variable to an initial value in the same line as it is declared.

var myVar = 0;
Creates a new variable called myVar and assigns it an initial value of 0.

Define a variable a with var and initialize it to a value of 9.
Tests
Failed:1. You should initialize a to a value of 9.

Your code so far


Your browser information:

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

Challenge Information:

Basic JavaScript - Initializing Variables with the Assignment Operator

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

This course is pretty old, I would suggest trying a newer one:

https://www.freecodecamp.org/learn/full-stack-developer/

https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/