Need some help!! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Need some help!!

Why do the code starts outputting undefined after Ui's value is turned to 2? How can I correct it? Thanks. https://code.sololearn.com/Wf5YDsPblIL0/?ref=app

19th Oct 2017, 5:03 PM
Isair Calhawk
Isair Calhawk - avatar
5 Answers
+ 2
https://code.sololearn.com/Wuebyz0B1d6Z/?ref=app
19th Oct 2017, 6:10 PM
Oma Falk
Oma Falk - avatar
+ 2
ui.innerHtml changes from counter to string "hoe are you'
19th Oct 2017, 5:40 PM
Oma Falk
Oma Falk - avatar
+ 2
Can you please give some details @Oma Falk
19th Oct 2017, 5:58 PM
Isair Calhawk
Isair Calhawk - avatar
+ 2
follow the development of Ui.innerHtml. initially it is 0 you increment and it changes to 1 Then in javascript line 5 it changes to "how are you"
19th Oct 2017, 6:02 PM
Oma Falk
Oma Falk - avatar
+ 2
Thanks a lot Oma Falk :) You are awesome!
20th Oct 2017, 9:49 AM
Isair Calhawk
Isair Calhawk - avatar