0
for... if vs switch
Why doesn´t the switch block work? The for.. if block works fine. They should do the same thing.. right? https://code.sololearn.com/WI3gx5HM63Op/#js
2 Antworten
+ 2
You still need your for loop. It should be
for(word of storyWords ){
switch (word) {
.....
}
}
+ 1
Worked. Thank you!