Files
2022-01-20 20:30:18 +01:00

966 B

id, title, challengeType, videoUrl, forumTopicId, dashedName
id title challengeType videoUrl forumTopicId dashedName
56533eb9ac21ba0edf2244a9 代入演算子で変数を初期化する 1 https://scrimba.com/c/cWJ4Bfb 301171 initializing-variables-with-the-assignment-operator

--description--

変数は宣言と同じ行の中で、初期値を使用して初期化するのが一般的です。

var myVar = 0;

上記は myVar という名前の新しい変数を作成し、初期値 0 を代入します。

--instructions--

変数 avar で定義し、値 9 で初期化してください。

--hints--

a を値 9 で初期化する必要があります。

assert(/var\s+a\s*=\s*9(\s*;?\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;