Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

780 B

id, title, challengeType, videoUrl, forumTopicId, dashedName
id title challengeType videoUrl forumTopicId dashedName
cf1231c1c11feddfaeb5bdef 乘法运算 1 https://scrimba.com/c/cP3y3Aq 18243 multiply-two-numbers-with-javascript

--description--

我们也可在 JavaScript 中使用乘法运算。

JavaScript 使用*符号表示两数相乘。

示例

myVar = 13 * 13; // assigned 169

--instructions--

改变数值0来让变量 product 的值等于80

--hints--

要使product的值等于 80。

assert(product === 80);

使用*运算符。

assert(/\*/.test(code));

--seed--

--after-user-code--

(function(z){return 'product = '+z;})(product);

--seed-contents--

var product = 8 * 0;

--solutions--

var product = 8 * 10;