Some problems with the last exercise "Words" of the JavaScript course [SOLVED]
Hi there I have decided to write regarding a problem with the last exercise "Words" of the JavaScript course. I have correctly solved the last exercise "Words" of the JavaScript course but the system keeps giving me an error. Why? Help me please! I solved the exercise with different types of solutions (they are all strings), for example: $hehe$hoho$haha$hihi$huhu (with or without the $ at the end of the string and with or without " at the beginning and at the end of the string) $this$is$awesome (with or without the $ at the end of the string and with or without " at the beginning and at the end of the string) $lorem$ipsum$dolor$sit$amet$,$consectetur$adipiscing$elit (with or without the $ at the end of the string and with or without " at the beginning and at the end of the string) but none of these solutions are good. Why? This one is my code ( https://code.sololearn.com/cA35a10a2542 ): class Add { constructor(...words) { this.words = words; } //your code goes here print () { var l = new Array (); for (let i in this.words) { l.push("
quot;+this.words[i]); } //let m = (l.join("")); let m = (l.join("")+"quot;); //let m = ('"'+l.join("")+"quot;+'"'); console.log(m); } } 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(); I don't understand where I'm wrong. Thanks in advance to those who will help me.