how to say and run hello world in javascript code example
Example 1: Javascript how to run hello world
var msg = "hello world";
console.log(msg);
Example 2: js code to run hello world
<script>
alert( 'Hello, world!' );
</script>
var msg = "hello world";
console.log(msg);
<script>
alert( 'Hello, world!' );
</script>