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