--- id: cf1111c1c11feddfaeb3bdef title: Add Two Numbers with JavaScript challengeType: 1 videoUrl: '' localeTitle: 使用JavaScript添加两个数字 --- ## Description Number是JavaScript中的数据类型,表示数字数据。现在让我们尝试使用JavaScript添加两个数字。当放置在两个数字之间时,JavaScript使用+符号作为加法运算。 例 myVar = 5 + 10; //分配15 ## Instructions 更改0使总和等于20 。 ## Tests ```yml tests: - text: sum应该等于20 testString: assert(sum === 20); - text: 使用+运算符 testString: assert(/\+/.test(code)); ``` ## Challenge Seed ```js var sum = 10 + 0; ``` ### After Test ```js console.info('after the test'); ``` ## Solution ```js // solution required ```
Number
+
myVar = 5 + 10; //分配15
0
20
sum