+ 1

JavaScript var help

https://code.sololearn.com/WscXIa8cqLtv/?ref=app This is my first JavaScript code and I'm not getting any result. And I can't figure out the mistake(s). Any body know why? -

5th May 2019, 6:47 AM
Ginfio
Ginfio - avatar
2 Respostas
+ 4
You need to print the result. Try `console.log(k);` or `document.write(k);`.
5th May 2019, 6:59 AM
Schindlabua
Schindlabua - avatar
+ 1
It works (document.write)
5th May 2019, 7:01 AM
Ginfio
Ginfio - avatar