JavaScript code project, what am i doing wrong?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

JavaScript code project, what am i doing wrong??

https://code.sololearn.com/ccAY3P9Kkprv/?ref=app

21st Apr 2023, 9:19 PM
Martins Michael
Martins Michael - avatar
3 Answers
+ 4
You should not use $ as your separation character in your template string. Its a reserved "control sign" to insert a variable. You could escape it with a \ but it would be better to pick another char like !
21st Apr 2023, 10:28 PM
MrGrumpy
MrGrumpy - avatar
+ 3
// Try it Oo" print() { let combinedWords = this.words.join("
quot;); console.log(`${combinedWords} ); }
22nd Apr 2023, 12:51 AM
SoloProg
SoloProg - avatar
+ 3
Delete line 10 ~ 12. Line 11 in particular puts in an unnecessary additional '
#x27; character.
22nd Apr 2023, 2:51 AM
Ipang