Learn Javascript || Introduction and Hello World! Example

Learn Javascript || Introduction and Hello World! Example.JavaScript is a lightweight and interpreted programming language. It is Designed for Creating network-centric applications and it is Complementary to and integrated with HTML. its Completely open and Cross-platform and JavaScript Code is a very powerful client-side scripting language. It’s used mainly for enhancing the interaction of a user with the webpage. In other words, We can make our webpage more lively and interactive. JavaScript is also being used widely in game development and Mobile application development

WHAT IS BASICS KNOWLEDGE TO START Learn JAVASCRIPT :

You have a prior Knowledge of HTML just make use of this options to execute your Javascript programs at the spot.





Learn Javascript || Introduction and Hello World! Example

HOW TO RUN JAVASCRIPT:

Being a scripting language, JavaScript cannot run on its own.in fact, The Browser is responsible for running JavaScript code. When a user requests an HTML page with JavaScript in it, The Script is sent to the browser and it is up to the browser to execute it. The main Advantage of JavaScript is that all modern web browser support JavaScript. So you do not have to worry about whether your site visitor uses internet Explorer, Google Chrome, Firefox for any other browser. JavaScript will be supported. Also, JavaScript runs on any operating system including Windows, Linux or Mac. Thus JavaScript overcomes the main disadvantages of VBScript (Now Deprecated) Which is limited to just IE and Windows.

WHAT ARE TOOLS YOU NEED :

To start with, you need a text to write your code and browser to display the web pages you develop. You can use a text editor of your choice including “NOTEPAD ++, VISUAL STUDIO CODE, SUBLIME TEXT, ATOM ” or any other text editor as your comfortable. You can use any web browser including Google Chrome, Firefox, Microsoft Edge, Internet Explorer etc.





HOW WRITE A JAVASCRIPT :

You should place all your Javascript code within <script> Tags (<script> and </script>) if you are Keeping your Javascript code within the HTML Document itself. This Helps your browser distinguish your javascript code from the rest of the code . As there are other client-side scripting languages, It’s highly recommended that you specify the scripting language you use. You have to use the type attribute within the <script> tag and set its value to text/javascript.

 

HELLO WORLD :

<html>

<body>

<script language=”javascript” type=”text/javascript”>

document.write(“Hello World”)

</script>

</body>

</html>

See More:

Like Dislike system with PHP and MySQL

How to send email in php

About the author

admin

Leave a Comment