--- id: 56533eb9ac21ba0edf2244ed title: Appending Variables to Strings challengeType: 1 videoUrl: '' localeTitle: إلحاق المتغيرات بالسلاسل --- ## Description
مثلما يمكننا بناء سلسلة على عدة أسطر من القيم الحرفية ، يمكننا أيضًا إضافة متغيرات إلى سلسلة باستخدام عامل plus equals ( += ).
## Instructions
someAdjective إلى myStr باستخدام += عامل التشغيل.
## Tests
```yml tests: - text: someAdjective يجب تعيين إلى سلسلة 3 أحرف على الأقل طويلة testString: 'assert(typeof someAdjective !== "undefined" && someAdjective.length > 2, "someAdjective should be set to a string at least 3 characters long");' - text: إلحاق someAdjective إلى myStr باستخدام += عامل التشغيل testString: 'assert(code.match(/myStr\s*\+=\s*someAdjective\s*/).length > 0, "Append someAdjective to myStr using the += operator");' ```
## Challenge Seed
```js // Example var anAdjective = "awesome!"; var ourStr = "freeCodeCamp is "; ourStr += anAdjective; // Only change code below this line var someAdjective; var myStr = "Learning to code is "; ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```