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
5 Answers
+ 2
https://code.sololearn.com/Wuebyz0B1d6Z/?ref=app
+ 2
ui.innerHtml changes from counter to string "hoe are you'
+ 2
Can you please give some details @Oma Falk
+ 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"
+ 2
Thanks a lot Oma Falk :) You are awesome!