Answers for "how to run a js file with html simple"

59

include script in html

<script type="text/javascript" src="/path/to/script.js"></script>
Posted by: Guest on July-17-2020
5

javascript hello world

I would do something like this:

<script>
  alert("Hello World!");
</script>
Posted by: Guest on November-19-2020
3

print hello world in javascript

console.log("Hello, World!");

console.error("Error, World!"); // For errors

console.warn("Warning, World!"); // For warnings

console.clear(); // To clear the console
Posted by: Guest on September-30-2020

Code answers related to "how to run a js file with html simple"

Browse Popular Code Answers by Language