advertisement

JavaScript Introduction

50 %
50 %
advertisement
Information about JavaScript Introduction
Education

Published on March 6, 2014

Author: jainulmusani

Source: slideshare.net

Description

JavaScript First Step
advertisement

Java Script • Scripting Language • Dynamic Web pages requires User Inputs and structure webpage contents dynamically. • Its an Interpreted Programming Language • Its an Object Oriented Programming Language & Event Driven

Java Script • • • • • • Client Side & Server Side Creates Dynamic Webpages Netscape has introduced (Live Script) In 1995 SUN microsystems took over To be inserted into HTML page An Open & Cross platform application

Java Script • • • • Dynamic Text into HTM page Response to Events Read and Write HTML elements Validate Data

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

Java Script <html> <body> <script type="text/javascript"> document.write(“<B> Hello World! <B>"); <!– this is comments for the javascript //--> // Single Line Comments /* Multi Line Comments ….*/ </script> </body> </html>

Java Script <html> <head> <script src="xxx.js"> </script> </head> <body> </body> </html>

Java Script Variables var x; var carname; var x=5; var carname="Volvo";

Java Script Expression Writing Y = X - 5; Z = Y + 5;

Java Script <html> <body> <script type="text/javascript"> x=5+5; document.write(x); document.write("<br />");

Java Script x="5"+"5"; document.write(x); document.write("<br />"); x=5+"5"; document.write(x); document.write("<br />");

Java Script x="5"+5; document.write(x); document.write("<br />"); </script> The common rule is: If you add a number and a string, the result will be a string.

Java Script • • • • • Arithmetic Operator Short hand Operator Comparison Operator Logical Operator Conditional (Ternary) Operator

Java Script • • • • Conditional Statements if statement if…else statement Nested if…else statements switch case statement

Add a comment

Related presentations

Related pages

JavaScript Introduction - W3Schools Online Web Tutorials

Well organized and easy to understand Web bulding tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, and XML.
Read more

JavaScript/Introduction - Wikibooks, open books for an ...

JavaScript is an interpreted computer programming language formalized in the ECMAScript language standard. JavaScript engines interpret and execute JavaScript.
Read more

A re-introduction to JavaScript (JS tutorial) - JavaScript ...

Why a re-introduction? Because JavaScript is notorious for being the world's most misunderstood programming language. It is often derided as being a toy ...
Read more

JavaScript Tutorial - W3Schools Online Web Tutorials

Well organized and easy to understand Web bulding tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, and XML.
Read more

Javascript - General Introduction - QuirksMode - for all ...

JavaScript is most commonly used as a client side scripting language. This means that JavaScript code is written into an HTML page. When a user requests an ...
Read more

JavaScript Introduction Tutorial - After Hours Programming

The JavaScript Introduction tutorial explains what JavaScript is and how to use it for web development.
Read more

JavaScript tutorial - Introduction to JavaScript

Introduction to JavaScript. JavaScript is a programming language that can be included on web pages to make them more interactive. You can use it to check ...
Read more

Introduction to Object-Oriented JavaScript - JavaScript | MDN

JavaScript has strong object-oriented programming capabilities, even though some debates have taken place due to the differences in object-oriented ...
Read more

Introduction :: Eloquent JavaScript

Introduction. This is a book about getting computers to do what you want them to do. Computers are about as common as screwdrivers today, but they contain ...
Read more

Introduction | JavaScript Tutorial

There’s a color scheme: the pattern - red; the subject string - blue; the result - green
Read more