how to display hello world in javascript code example
Example 1: Javascript how to run hello world
var msg = "hello world";
console.log(msg);
Example 2: javascript hello world
I would do something like this:
<script>
alert("Hello World!");
</script>