document.
write("Text written using
JavaScript code!"); You would then save the file with a .js extension. For instance, you could save it as
write.js. Once the file has been saved, you can call it from the HTML
code via the src attribute of the opening script tag, as shown below for
write.js.
read more >>