- 1

Please help me,find my mistake

class Add { constructor(...words) { this.words = words; } } print(){ var str = this.words.join("

quot;); var b = "
quot;+str+"
quot;; console.log(b);// var x = new Add("hehe", "hoho", "haha", "hihi", "huhu"); var y = new Add("this", "is", "awesome"); var z = new Add("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing", "elit"); x.print(); y.print(); z.print();

28th Jun 2021, 2:37 PM
Alim Niyazov
Alim Niyazov - avatar
2 ответов
28th Jun 2021, 3:33 PM
A͢J
A͢J - avatar
0
kindly delete this duplicate: you've got answers in your other previous thread ^^
28th Jun 2021, 6:57 PM
visph
visph - avatar