- 1
Can anyone knows why my code not show time
When i was creaing a digital clock the js code was not working ..
3 odpowiedzi
+ 3
Post your CODE First Please so we can Help you.
+ 2
you maybe need to wrap your js in an onload event handler function:
onload = () => {
/* your js code */
};
but not function declarations used in html inlined events ^^ (the good way to handle them is to attach them dynamically at start)...
the reason is that in sololearn android app, the js tab is inserted in the head section, before dom was ready to be accessed (don't know how it is handle on iOS, appended to body in -- actual last version -- web)
0
Thankyou all