Your SlideShare is downloading. ×
0
JavaScript Introduction
JavaScript Introduction
JavaScript Introduction
JavaScript Introduction
JavaScript Introduction
JavaScript Introduction
JavaScript Introduction
JavaScript Introduction
JavaScript Introduction
JavaScript Introduction
JavaScript Introduction
JavaScript Introduction
JavaScript Introduction
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

JavaScript Introduction

216

Published on

JavaScript First Step

JavaScript First Step

Published in: Education
1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total Views
216
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
14
Comments
1
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 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
  • 2. 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
  • 3. Java Script • • • • Dynamic Text into HTM page Response to Events Read and Write HTML elements Validate Data
  • 4. Java Script <html> <body> <script type="text/javascript"> document.write("Hello World!") </script> </body> </html> ;
  • 5. 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>
  • 6. Java Script <html> <head> <script src="xxx.js"> </script> </head> <body> </body> </html>
  • 7. Java Script Variables var x; var carname; var x=5; var carname="Volvo";
  • 8. Java Script Expression Writing Y = X - 5; Z = Y + 5;
  • 9. Java Script <html> <body> <script type="text/javascript"> x=5+5; document.write(x); document.write("<br />");
  • 10. Java Script x="5"+"5"; document.write(x); document.write("<br />"); x=5+"5"; document.write(x); document.write("<br />");
  • 11. 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.
  • 12. Java Script • • • • • Arithmetic Operator Short hand Operator Comparison Operator Logical Operator Conditional (Ternary) Operator
  • 13. Java Script • • • • Conditional Statements if statement if…else statement Nested if…else statements switch case statement

×