0
need help
it seems I am trying but couldn't solve any one who can help me respond to me asap? here is the question Complete the code by adding a print() method to the class, which should generate the requested output. Note, that the dollar sign is placed at the beginning and at the end of the output. For example, for the words "hello", "how", "are", "you", the output should be "$hello$how$are$you
quot;. 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();1 Answer
+ 1
Hi! Please, show your code here