mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-30 21:03:58 -05:00
604 B
604 B
id, title, challengeType, videoUrl, forumTopicId
| id | title | challengeType | videoUrl | forumTopicId |
|---|---|---|---|---|
| cf1111c1c11feddfaeb3bdef | 加法运算 | 1 | https://scrimba.com/c/cM2KBAG | 16650 |
--description--
Number是 JavaScript 中的一种数据类型,表示数值。
现在让我们来尝试在 JavaScript 中做加法运算。
JavaScript 中使用+号进行加法运算。
示例
myVar = 5 + 10; // assigned 15
--instructions--
改变数字0让变量 sum 的值为20。
--hints--
sum应该等于20。
assert(sum === 20);
要使用+运算符。
assert(/\+/.test(code));