0
I want to include script.js in html body and display function inside script.js after content Time. Thanks you.
Include script JavaScript inside body HTML. https://code.sololearn.com/WnZ8NMTMGMjE/?ref=app
1 Respuesta
+ 1
In sololearn , you don't need to include your js file like script.js
Without including script.js in your code, you can run your code perfectly.
You can write your code on js console. But there's no need to define again in script tag in html console.
In your code, js console -> you defined get element by Id ,but there's no id="time" attribute in your body tag. 🤷