hello world in javascript

JavaScript
// Output Hello World! in the console.
console.log("Hello World!");I would do something like this:

<script>
  alert("Hello World!");
</script>
var msg = "hello world";
console.log(msg);alert("Hello world");console.log("Hello World!");<script>
	alert("Hello World");  
</script>
Source

Also in JavaScript: