It doesn't output what I expect :/ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

It doesn't output what I expect :/

What can I do to output this? aaa aab aac aba abb ... ccc I've tried using a switch statement, but it just gives me: aaa And then stops. https://code.sololearn.com/WPtmz0OTXjT3/?ref=app

10th Mar 2019, 9:36 PM
Lorenzo
Lorenzo - avatar
1 Answer
+ 8
Looks ok to me, you just need to print the char this might help alert(String.fromCharCode(firstLetter+96) + "" + String.fromCharCode(secondLetter+96) + "" + String.fromCharCode(thirdLetter+96));
10th Mar 2019, 9:47 PM
D_Stark
D_Stark - avatar