class Add { constructor(...words) { this.words = words; } //your code goes here } var x = new Add("hehe", "h | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

class Add { constructor(...words) { this.words = words; } //your code goes here } var x = new Add("hehe", "h

This program is wrong please correct this code

7th Dec 2021, 2:14 AM
Anish Kumar Pankaj
Anish Kumar Pankaj - avatar
2 Answers
+ 4
Anish Kumar Pankaj Program is not wrong you need to write code so write and show attempts.
7th Dec 2021, 2:25 AM
A͢J
A͢J - avatar
+ 1
DON'T PUT CODE IN THE HEADING! It gets cut off so nobody can read it and nobody can help you. Put it in a script on sololearn!
7th Dec 2021, 8:54 AM
Lisa
Lisa - avatar