Wednesday 22 August 2018

Javascript: Hello world program

helloWorld.html

<!DOCTYPE html>

<html>
 <head>
  <title>Hello world</title>
 </head>
 
 <body>
  <script type="text/javascript">
   document.write("Hello World");
  </script>
 </body>
</html>



document.write("Hello World");
Above statement gives instruction to the browser to write "Hello World". Java Script is embedded between <script></script> tags.


Previous                                                 Next                                                 Home

No comments:

Post a Comment