--- id: cf1111c1c11feddfaeb3bdef title: Add Two Numbers with JavaScript challengeType: 1 videoUrl: 'https://scrimba.com/c/cM2KBAG' forumTopicId: 16650 --- ## Description
Number is a data type in JavaScript which represents numeric data. Now let's try to add two numbers using JavaScript. JavaScript uses the + symbol as an addition operator when placed between two numbers. Example: ```js myVar = 5 + 10; // assigned 15 ```
## Instructions
Change the 0 so that sum will equal 20.
## Tests
```yml tests: - text: sum should equal 20. testString: assert(sum === 20); - text: You should use the + operator. testString: assert(/\+/.test(code)); ```
## Challenge Seed
```js var sum = 10 + 0; ```
### After Test
```js (function(z){return 'sum = '+z;})(sum); ```
## Solution
```js var sum = 10 + 10; ```