Oliver Eyton-Williams 0bd52f8bd1
Feat: add new Markdown parser (#39800)
and change all the challenges to new `md` format.
2020-11-27 10:02:05 -08:00

840 B

id, title, challengeType, videoUrl, forumTopicId
id title challengeType videoUrl forumTopicId
56533eb9ac21ba0edf2244a9 Initializing Variables with the Assignment Operator 1 https://scrimba.com/c/cWJ4Bfb 301171

--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*/.test(code));

--seed--

--after-user-code--

if(typeof a !== 'undefined') {(function(a){return "a = " + a;})(a);} else { (function() {return 'a is undefined';})(); }

--seed-contents--

--solutions--

var a = 9;