WHAT IS JAVASCRIPT AND HOW TO LEARN JAVASCRIPT?

INTRODUCTION TO JAVASCRIPT

Script



 Script is an interpreted programming that runs on the client computer. It is written scripting language. An interpreted language used to write scripts is called scripting language. HTML is used to exchange information over the internet. It provide little or no contract over a web page once it is displayed in the browser. It is not possible to interact with the use in HTML. Moreover, the contents of an HTML document are static. Scripting is a method that can be used to create dynamic HTML page and provide user interaction. There are several methods that can be used to create dynamic pages:

1:         SERVER-SIDE SCRIPTS

2:         CLIENT-SIDE SCRIPTS

SERVER-SIDE SCRIPTS

Server-side scripts are stored and executed on servers. These scripts are provided for user interaction. Data from the client machine is sent to the WEB server. Server script process the request and send the required page to the client browser.

CLIENT-SIDE SCRIPTS

Client-side scripts are executed on client computer. The browsers support the user scripts. These scripts can be embedded in HTML documents. The browser interprets and executes the code embedded in the page.

Scripts can be used to change the content or style of a web page in response to user input. If the application is database-oriented, scripts can be used to validate the data entered by the user before it is sent to the server for processing. For example, a client-side script can  verify if the user has entered data in all the required fields before the form is submitted to the server for processing.

JAVASCRIPT

JavaScript is an interpreted language that is used to add dynamic contents in Web pages. Interpreted means that the entire web page is downloaded to the browser and the JavaScript code is executed when and event is triggered. When the code is executed it is interpreted on e line at a time. There are a number of events that will trigger the execution of a JavaScript such a s click on a for button or the completion of a web page loading etc.

JavaScript is used to include messages, scrolling text, animations, menus, pop-up windows etc. JavaScript was developed by sun Microsystems and Netscape Communicator. It is an open language. It can be used without purchasing. Netscape supports JavaScript and Internet Explorer supports JScript. Jscript is a subset of JavaScript.


Advantages of JavaScript

Interpreted language

JavaScript is an interpreted language

Easy to Learn

 The syntax of JAVASCRIPTis very easy. Any person can learn it very easily and use it develop dynamic and interactive websites.

EVENT-BASED PROGRAMMING

 JavaScript is an event-based language. It means that different code segments are executed when certain event occurs.

MOUSE ROLLOVER EFFECTS

 Script can be used to create different buttons with interesting mouse rollover effects. When the user moves the mouse overs a button different effect are generated, it makes browsing more interesting and more attractive.

DATA TYPES.

JavaScript provide the following data types:

1:         NUMERIC DATA

Numeric data consist of numbers. It may be whole number or real number. Numeric data mayconsist of the following:

Numbers (0 to 9)

Decimal point

2:         INTEGER

Inter values can be represented in decimal, hexadecimal and octal form.

3:         FLOATING-POINT NUMBERS

Floating point values are the values that require decimal point such as 25.30 or exponential notation such as 2E2 etc.

4:         LOGICAL OR BOOLEAN

 Boolean data type includes true and false. It is normally used to indicate a condition.

5:         STRING:

String data type includes all values that are written in single or double quotes such as “IT SERIES”, “PAKISTAN”

6:         NULL

 A special keyword null indicates a null value. It is used to indicate a reference that is empty or does not exist.

HTML LEARNING PLEASE CLICK HERE

CSS LEARNING PLEASE CLICK HERE

FOR MORE INFO VISIT THIS


Post a Comment

Please your insights about the knowledge that is shared in this platform. after all, it's all about Yuu. Don't forget to share the post.

Previous Post Next Post