in JavaScript by
How to write a hello world example of JavaScript?

1 Answer

0 votes

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

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

Related questions and answers

0 votes
asked Jun 9 in JavaScript by sharadyadav1986
+1 vote
asked Dec 4, 2019 in JavaScript by SakshiSharma
0 votes
asked Sep 19, 2021 in JavaScript by sharadyadav1986