0
How knows what rong here
https://sololearn.com/compiler-playground/W47776e5V4PW/?ref=app
1 Réponse
0
Try removing 'src' attribute & value from the <script>, the script is directly embedded in the HTML document, not coming from external source (file).
Unfortunately though, even with that change on my part, data fetching was still unsuccessful (I'm online though), don't know why.
Some stuffs might worth a read
https://dev.to/maxmonteil/is-your-app-online-here-s-how-to-reliably-know-in-just-10-lines-of-js-guide-3in7
https://www.freecodecamp.org/news/how-to-check-internet-connection-status-with-javascript/