+ مع قيمة String ، يطلق عليه عامل التشغيل السلسة . يمكنك إنشاء سلسلة جديدة خارج السلاسل الأخرى عن طريق وصلها معًا. مثال "اسمي ألان ،" + "أنا سلسلته".ملحوظة
myStr من السلاسل "This is the start. " و "This is the end." باستخدام عامل + . myStr قيمة This is the start. This is the end.
testString: 'assert(myStr === "This is the start. This is the end.", "myStr should have a value of This is the start. This is the end.");'
- text: استخدم عامل التشغيل + لبناء myStr
testString: 'assert(code.match(/([""]).*([""])\s*\+\s*([""]).*([""])/g).length > 1, "Use the + operator to build myStr");'
- text: يجب إنشاء myStr باستخدام الكلمة الرئيسية var .
testString: 'assert(/var\s+myStr/.test(code), "myStr should be created using the var keyword.");'
- text: تأكد من تعيين النتيجة لمتغير myStr .
testString: 'assert(/myStr\s*=/.test(code), "Make sure to assign the result to the myStr variable.");'
```