write hello world code in js code example
Example 1: javascript hello world
I would do something like this:
<script>
alert("Hello World!");
</script>
Example 2: hello in js
console.log("Hello world");
I would do something like this:
<script>
alert("Hello World!");
</script>
console.log("Hello world");