JavaScript Basics Tutorial.


          JavaScript and Java are completely different languages, both in concept and design. JavaScript was invented by Brendan Eich in 1995, and became an ECMA standard in 1997.

Basic :-
JavaScript is a rich and expressive language in its own right. This section covers the basic concepts of JavaScript, as well as some frequent pitfalls for people who have not used JavaScript before. While it will be of particular value to people with no programming experience, even people who have used other programming languages may benefit from learning about some of the peculiarities of JavaScript.
If you’re interested in learning more about the JavaScript language, I highly recommend JavaScript: The Good Partsby Douglas Crockford.

What is Javascript? 
JavaScript is a programming language that started off simply as a mechanism to add logic and interactivity to an otherwise static Netscape browser. In the years since its introduction, it has not only supplanted a variety of other competing languages and technologies to become the standard for browser-based programming, but it has also expanded beyond the client space to become a dominant language on the server side, as well.

Basics of JavaScript programming

HTML provides a special <SCRIPT> tag that enables developers to embed JavaScript within the markup of the page.
Variable declaration using the var keyword in JavaScript is very straightforward and does not involve a complex set of initialization rules as one might see in Java or C++. JavaScript is known as an untyped language, which means that variables can take on a variety of different forms as a program executes.
For example, in the following program, a variable named greeting is declared and is initialized to a text string. But, on the next line, the greeting variable is assigned to an integer value of 10. A new variable named product is then initialized to the value of the greeting variable multiplied by itself.
var greeting = 'Hello World';
greeting = 10;
var product = greeting * greeting;

Want full pdf email me 

3 Comments

avatar
avatar
avatar