Help me! Words JavaScript exercise! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help me! Words JavaScript exercise!

No output displayed, why?? https://code.sololearn.com/cXTNf6Ycr0gY/?ref=app

17th Sep 2021, 10:46 AM
Ivan Voncini
Ivan Voncini - avatar
3 Answers
0
print(){ var crypto=""; for(var i=0;i<this.words.lenght;i++){ crypto+=this.words[i]+"
quot;; } console.log(crypto);
17th Sep 2021, 10:46 AM
Ivan Voncini
Ivan Voncini - avatar
0
Why 'no output'??
17th Sep 2021, 10:46 AM
Ivan Voncini
Ivan Voncini - avatar
0
Because you didn't call print() function
17th Sep 2021, 1:37 PM
A͢J
A͢J - avatar