---
id: cf1111c1c11feddfaeb3bdef
title: Add Two Numbers with JavaScript
challengeType: 1
videoUrl: ''
localeTitle: أضف رقمين مع JavaScript
---

## Description
<section id="description"> <code>Number</code> هو نوع البيانات في JavaScript والذي يمثل البيانات الرقمية. الآن دعنا نحاول إضافة رقمين باستخدام JavaScript. تستخدم JavaScript الرمز <code>+</code> كعملية إضافة عند وضعها بين رقمين. <strong>مثال</strong> <blockquote style=";text-align:right;direction:rtl"> myVar = 5 + 10؛ // المعين 15 </blockquote></section>

## Instructions
<section id="instructions"> تغيير <code>0</code> بحيث يساوي مجموع <code>20</code> . </section>

## Tests
<section id='tests'>

```yml
tests:
  - text: <code>sum</code> يجب أن يساوي <code>20</code>
    testString: 'assert(sum === 20, "<code>sum</code> should equal <code>20</code>");'
  - text: استخدم عامل التشغيل <code>+</code>
    testString: 'assert(/\+/.test(code), "Use the <code>+</code> operator");'

```

</section>

## Challenge Seed
<section id='challengeSeed'>

<div id='js-seed'>

```js
var sum = 10 + 0;

```

</div>


### After Test
<div id='js-teardown'>

```js
console.info('after the test');
```

</div>

</section>

## Solution
<section id='solution'>

```js
// solution required
```
</section>
