--- id: cf1111c1c11feddfaeb3bdef title: Add Two Numbers with JavaScript challengeType: 1 --- ## 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 addition operation when placed between two numbers. Example
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, "sum should equal 20");' - text: Use the + operator testString: 'assert(/\+/.test(code), "Use the + operator");' ```
## Challenge Seed
```js var sum = 10 + 0; ```
### After Test
```js console.info('after the test'); ```
## Solution
```js var sum = 10 + 10; ```