Skip to main content

--description--

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.

--instructions--

Define a variable a with var and initialize it to a value of 9.

--hints--

You should initialize a to a value of 9.

assert(/var\s+a\s*=\s*9(\s*;?\s*)$/.test(__helpers.removeJSComments(code)));

--seed--

--seed-contents--

--solutions--

var a = 9;