Help! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help!

https://code.sololearn.com/W6233V66Bw5D/?ref=app... It's not showing anything when I run it.. Why?

13th Sep 2017, 11:58 AM
Racheal Inyang Emmanuela
6 Answers
+ 3
but it would still remove any future html you add using that method. you could either edit a element innerhtml other than body or something like this: var child = document.createElement("P"); window.onload = function (){ document.body.appendChild(child); } function printTime() { var d = new Date(); var hours = d.getHours(); var mins = d.getMinutes(); var secs = d.getSeconds(); child.innerHTML = hours+":"+mins+":"+secs; } setInterval(printTime, 1000);
13th Sep 2017, 12:11 PM
Enzo
Enzo - avatar
+ 14
are you running the code from the app or website? if on the app restart the app then try again. if on website reload the page then try again. it works fine here.
13th Sep 2017, 12:05 PM
Lord Krishna
Lord Krishna - avatar
+ 4
It works fine!
13th Sep 2017, 12:00 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
13th Sep 2017, 12:08 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
It works after restarting the app
13th Sep 2017, 12:20 PM
Racheal Inyang Emmanuela
+ 2
It worked without a reload for me
13th Sep 2017, 12:07 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar