+ 3

Esq quiz

class Add { constructor(...words) { this.words = words; } //your code goes here } 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();

21st Dec 2022, 3:35 PM
Ikran
Ikran - avatar
1 Respuesta
+ 3
define print function as per description says..
21st Dec 2022, 5:30 PM
Jayakrishna 🇮🇳