Back to Home

JavaScript Introduction


Why Study JavaScript?

JavaScript is one of the 3 languages all web developers must learn:

   1. HTML to define the content of web pages

   2. CSS to specify the layout of web pages

   3. JavaScript to program the behavior of web pages

This tutorial is about JavaScript, and how JavaScript works with HTML and CSS.

JavaScript is a lightweight, interpreted programming language. It is designed for creating network-centric applications. It is complimentary to and integrated with Java. JavaScript is very easy to implement because it is integrated with HTML. It is open and cross-platform.

                <html>
                <body>
                
                   <script language="javascript" type="text/javascript">
                 
                         document.write("Hello World!")
                  
                   </script>
                   
                </body>
             </html>
        

NOTE: Copy the above code in a file and save it with a .html extension. example "HelloWorld.html"

Result: When you run the above code you will see the below Result

Hello World!


Home