Помогите пожалуйста ! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Помогите пожалуйста !

Мне нужна помощь с заданием "слова" я не могу разобраться. Кто может объясните...

12th Apr 2021, 7:06 AM
Никита Бобряков
3 Answers
+ 1
class Add { constructor(...words) { this.words = words; } //your code goes here print(){ let y="" for(x of this.words){ y=y+"
quot;+x; } console.log(y); } } var x = new Add("hehe", "hoho", "haha", "hihi", "huhu
quot;); var y = new Add("this", "is", "awesome
quot;); var z = new Add("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing", "elit
quot;); x.print(); y.print(); z.print();
12th Apr 2021, 11:51 PM
Никита Бобряков
+ 1
Я его сделал
12th Apr 2021, 11:52 PM
Никита Бобряков
0
могу я получить ссылку?
12th Apr 2021, 11:44 PM
MyNameIsMutable
MyNameIsMutable - avatar