An Introduction to JavaScript , Hello World

JavaScript is the most popular scripting language in the world. This is a simple Hello world code snippet which displays hello world in the page. Basically there are four different ways of displaying message in a page using JavaScript


  • window.alert().
  • document.write().
  • innerHTML.
  • console.log()


  • Simple Hello World Code Snippet:

    <html>
    <body>
    <script>
       window.alert("Hello World");
    </script>
    </body>
    </html> 
    

    Description
    The output is just a Alert window showing Hello World in it.

    Comments

    Popular posts from this blog

    Non Restoring Division Algorithm Implementation in C

    Hackerrank Modified Kaprekar Numbers Solution

    Bit Stuffing Code Implementation in Java