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>  

Leave a Reply

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