0
Why doesn't it work on the phone???
2 Answers
+ 4
All your JavaScript has to be executed only after the rest of the page (the html document) is fully loaded.
You can achieve this by embedding your script in an anonymous function that executes from onload event.
window.onload = () => {
// ... All your JavaScript
}
Also you cannot reference external local js files in html script tag.
If this code is not your own creation, it would be prudent to add the source in comments.
+ 2
Can you please describe more what is not working?
Also it will be best if you post your code so we can see, you can use "+" to embed your code.
https://www.sololearn.com/discuss/1316935/?ref=app