How to write a hello world example of JavaScript?

How to write a hello world example of JavaScript?

A simple example of JavaScript hello world is given below. You need to place it inside the body tag of HTML.

<script type="text/javascript">  
document.write("JavaScript Hello World!");  
</script> 

Also Read:-

Leave a Comment

Your email address will not be published. Required fields are marked *