SlideShare ist ein Scribd-Unternehmen logo
1 von 8
JAVASCRIPT
• JavaScript is a scripting language produced by
Netscape for use within HTML Web pages.
• JavaScript is loosely based on Java and it is
built into all the major modern browsers.
• JavaScript is a lightweight, interpreted
programming language
JAVASCRIPT SYNTAX
• A JavaScript consists of JavaScript statements
that are placed within the <script>... </script>
HTML tags in a web page.
• You can place the <script> tag containing your
JavaScript anywhere within your web page but
it is preferred way to keep it within the
<body> tags.
HELLO WORLD!!
<html>
<body>
<script>
document.write("Hello World!")
</script>
</body>
</html>
KEY POINTS
• Whitespace and Line Breaks
• Semicolons are Optional
• But when formatted in a single line as follows,
the semicolons are required:
var1 = 10; var2 = 20;
• Case Sensitive:
Time, TIme and TIME will have different
meanings in JavaScript.
JavaScript Variables
• Variables are declared with the var keyword as
follows:
<script>
var money; var name;
</script>
If…else Statement
The if...else statement is the next form of control
statement that allows JavaScript to execute
statements in more controlled way.
Syntax:
if (expression)
{ Statement(s) to be executed if expression is true
}
else{ Statement(s) to be executed if expression is false }
Tutorial
• Determine whether the entered year is leap or
not.
• Password checking.
Recruitment questions
• On facebook page:
Microsoft Mobile Innovation Lab
Send your solutions at:
ekanshpurwar@gmail.com

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (19)

Java script202
Java script202Java script202
Java script202
 
Unobtrusive js
Unobtrusive jsUnobtrusive js
Unobtrusive js
 
Web assembly: a brief overview
Web assembly: a brief overviewWeb assembly: a brief overview
Web assembly: a brief overview
 
SCCI'14 - Appsplash [2] Code!
SCCI'14 - Appsplash [2] Code!SCCI'14 - Appsplash [2] Code!
SCCI'14 - Appsplash [2] Code!
 
Coffee scripts with rails
Coffee scripts with railsCoffee scripts with rails
Coffee scripts with rails
 
Node.js
Node.jsNode.js
Node.js
 
Clojure Lightning Talk
Clojure Lightning TalkClojure Lightning Talk
Clojure Lightning Talk
 
Introduction to mean stack
Introduction to mean stackIntroduction to mean stack
Introduction to mean stack
 
NoSQL for great good [hanoi.rb talk]
NoSQL for great good [hanoi.rb talk]NoSQL for great good [hanoi.rb talk]
NoSQL for great good [hanoi.rb talk]
 
Javascript cheatsheet
Javascript cheatsheetJavascript cheatsheet
Javascript cheatsheet
 
Javascript - Today's trending script
Javascript - Today's trending scriptJavascript - Today's trending script
Javascript - Today's trending script
 
Advance java session 9
Advance java session 9Advance java session 9
Advance java session 9
 
Java script
Java scriptJava script
Java script
 
Reintroducing Web Technology
Reintroducing Web TechnologyReintroducing Web Technology
Reintroducing Web Technology
 
Php frameworks
Php frameworksPhp frameworks
Php frameworks
 
Get MEAN! Node.js and the MEAN stack
Get MEAN!  Node.js and the MEAN stackGet MEAN!  Node.js and the MEAN stack
Get MEAN! Node.js and the MEAN stack
 
Learn VBScript – Part 1 of 4
Learn VBScript – Part 1 of 4Learn VBScript – Part 1 of 4
Learn VBScript – Part 1 of 4
 
Jsp(java server pages)
Jsp(java server pages)Jsp(java server pages)
Jsp(java server pages)
 
Client side scripting and server side scripting
Client side scripting and server side scriptingClient side scripting and server side scripting
Client side scripting and server side scripting
 

Andere mochten auch

电动汽车动力蓄电池回收利用技术政策(2015 年版)
电动汽车动力蓄电池回收利用技术政策(2015 年版)电动汽车动力蓄电池回收利用技术政策(2015 年版)
电动汽车动力蓄电池回收利用技术政策(2015 年版)Justin Kao
 
A new beginning quiz!
A new beginning quiz!A new beginning quiz!
A new beginning quiz!Dana Archer
 
Research into horror genre
Research into horror genreResearch into horror genre
Research into horror genreBrandanWiles
 
Agr+3506+l8+sexual+propagation
Agr+3506+l8+sexual+propagationAgr+3506+l8+sexual+propagation
Agr+3506+l8+sexual+propagationmuzammir1992
 
Harvard Graduate School Education: teaching cs to teachers
Harvard Graduate School Education: teaching cs to teachersHarvard Graduate School Education: teaching cs to teachers
Harvard Graduate School Education: teaching cs to teachersMark Guzdial
 
Sinister scuptor
Sinister scuptorSinister scuptor
Sinister scuptorDana Archer
 
Rightclick profile
Rightclick profileRightclick profile
Rightclick profileRightClicksa
 
Ervan jonathan
Ervan jonathanErvan jonathan
Ervan jonathanErvan123
 
United Nations and what it has to do with ไทยแลนด์
United Nations and what it has to do with ไทยแลนด์United Nations and what it has to do with ไทยแลนด์
United Nations and what it has to do with ไทยแลนด์Nitchanan Riensombat
 
Knowledge management
Knowledge managementKnowledge management
Knowledge managementNEHA SHARMA
 

Andere mochten auch (20)

电动汽车动力蓄电池回收利用技术政策(2015 年版)
电动汽车动力蓄电池回收利用技术政策(2015 年版)电动汽车动力蓄电池回收利用技术政策(2015 年版)
电动汽车动力蓄电池回收利用技术政策(2015 年版)
 
Portfolio-illustrations-001-show
Portfolio-illustrations-001-showPortfolio-illustrations-001-show
Portfolio-illustrations-001-show
 
Tik 1
Tik 1Tik 1
Tik 1
 
Sales Focus: ENGAGE
Sales Focus: ENGAGESales Focus: ENGAGE
Sales Focus: ENGAGE
 
Wielkopolska
WielkopolskaWielkopolska
Wielkopolska
 
A new beginning quiz!
A new beginning quiz!A new beginning quiz!
A new beginning quiz!
 
Research into horror genre
Research into horror genreResearch into horror genre
Research into horror genre
 
Agr+3506+l8+sexual+propagation
Agr+3506+l8+sexual+propagationAgr+3506+l8+sexual+propagation
Agr+3506+l8+sexual+propagation
 
Harvard Graduate School Education: teaching cs to teachers
Harvard Graduate School Education: teaching cs to teachersHarvard Graduate School Education: teaching cs to teachers
Harvard Graduate School Education: teaching cs to teachers
 
Sinister scuptor
Sinister scuptorSinister scuptor
Sinister scuptor
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
 
Mga krusada
Mga krusadaMga krusada
Mga krusada
 
Rightclick profile
Rightclick profileRightclick profile
Rightclick profile
 
Ervan jonathan
Ervan jonathanErvan jonathan
Ervan jonathan
 
MIT to the NYSE: Journey from University Tech to M&A
MIT to the NYSE: Journey from University Tech to M&AMIT to the NYSE: Journey from University Tech to M&A
MIT to the NYSE: Journey from University Tech to M&A
 
The 8
The 8The 8
The 8
 
United Nations and what it has to do with ไทยแลนด์
United Nations and what it has to do with ไทยแลนด์United Nations and what it has to do with ไทยแลนด์
United Nations and what it has to do with ไทยแลนด์
 
Zabytki
ZabytkiZabytki
Zabytki
 
Knowledge management
Knowledge managementKnowledge management
Knowledge management
 
Tik 6
Tik 6Tik 6
Tik 6
 

Ähnlich wie Javascript

Java script by Act Academy
Java script by Act AcademyJava script by Act Academy
Java script by Act Academyactanimation
 
JavaScript New Tutorial Class XI and XII.pptx
JavaScript New Tutorial Class XI and XII.pptxJavaScript New Tutorial Class XI and XII.pptx
JavaScript New Tutorial Class XI and XII.pptxrish15r890
 
Java script writing javascript
Java script writing javascriptJava script writing javascript
Java script writing javascriptJesus Obenita Jr.
 
JAVA SCRIPT
JAVA SCRIPTJAVA SCRIPT
JAVA SCRIPTGo4Guru
 
Unit 4 Java script.pptx
Unit 4 Java script.pptxUnit 4 Java script.pptx
Unit 4 Java script.pptxGangesh8
 
Web programming UNIT II by Bhavsingh Maloth
Web programming UNIT II by Bhavsingh MalothWeb programming UNIT II by Bhavsingh Maloth
Web programming UNIT II by Bhavsingh MalothBhavsingh Maloth
 
WEB PROGRAMMING UNIT II BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT II BY BHAVSINGH MALOTHWEB PROGRAMMING UNIT II BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT II BY BHAVSINGH MALOTHBhavsingh Maloth
 
2javascript web programming with JAVA script
2javascript web programming with JAVA script2javascript web programming with JAVA script
2javascript web programming with JAVA scriptumardanjumamaiwada
 
Javascript
JavascriptJavascript
JavascriptSushma M
 
Java script lecture 1
Java script lecture 1Java script lecture 1
Java script lecture 1Mudasir Syed
 
Java script Basic
Java script BasicJava script Basic
Java script BasicJaya Kumari
 
WT Unit-3 PPT.pptx
WT Unit-3 PPT.pptxWT Unit-3 PPT.pptx
WT Unit-3 PPT.pptxTusharTikia
 
A sneak peek into the similarities and differences between java and java script
A sneak peek into the similarities and differences between java and java scriptA sneak peek into the similarities and differences between java and java script
A sneak peek into the similarities and differences between java and java scriptAMC Square
 

Ähnlich wie Javascript (20)

Js syntax
Js syntaxJs syntax
Js syntax
 
Java script
Java scriptJava script
Java script
 
Java script
Java scriptJava script
Java script
 
Java script by Act Academy
Java script by Act AcademyJava script by Act Academy
Java script by Act Academy
 
JavaScript New Tutorial Class XI and XII.pptx
JavaScript New Tutorial Class XI and XII.pptxJavaScript New Tutorial Class XI and XII.pptx
JavaScript New Tutorial Class XI and XII.pptx
 
Java script writing javascript
Java script writing javascriptJava script writing javascript
Java script writing javascript
 
Javascript tutorial
Javascript tutorialJavascript tutorial
Javascript tutorial
 
JAVA SCRIPT
JAVA SCRIPTJAVA SCRIPT
JAVA SCRIPT
 
Java script
Java scriptJava script
Java script
 
Unit 4 Java script.pptx
Unit 4 Java script.pptxUnit 4 Java script.pptx
Unit 4 Java script.pptx
 
Web programming UNIT II by Bhavsingh Maloth
Web programming UNIT II by Bhavsingh MalothWeb programming UNIT II by Bhavsingh Maloth
Web programming UNIT II by Bhavsingh Maloth
 
WEB PROGRAMMING UNIT II BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT II BY BHAVSINGH MALOTHWEB PROGRAMMING UNIT II BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT II BY BHAVSINGH MALOTH
 
2javascript web programming with JAVA script
2javascript web programming with JAVA script2javascript web programming with JAVA script
2javascript web programming with JAVA script
 
Javascript
JavascriptJavascript
Javascript
 
Java script lecture 1
Java script lecture 1Java script lecture 1
Java script lecture 1
 
t0526-2
t0526-2t0526-2
t0526-2
 
t0526-2
t0526-2t0526-2
t0526-2
 
Java script Basic
Java script BasicJava script Basic
Java script Basic
 
WT Unit-3 PPT.pptx
WT Unit-3 PPT.pptxWT Unit-3 PPT.pptx
WT Unit-3 PPT.pptx
 
A sneak peek into the similarities and differences between java and java script
A sneak peek into the similarities and differences between java and java scriptA sneak peek into the similarities and differences between java and java script
A sneak peek into the similarities and differences between java and java script
 

Kürzlich hochgeladen

Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptMadan Karki
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - GuideGOPINATHS437943
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Piping Basic stress analysis by engineering
Piping Basic stress analysis by engineeringPiping Basic stress analysis by engineering
Piping Basic stress analysis by engineeringJuanCarlosMorales19600
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptJasonTagapanGulla
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 

Kürzlich hochgeladen (20)

Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.ppt
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - Guide
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Piping Basic stress analysis by engineering
Piping Basic stress analysis by engineeringPiping Basic stress analysis by engineering
Piping Basic stress analysis by engineering
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.ppt
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 

Javascript

  • 1. JAVASCRIPT • JavaScript is a scripting language produced by Netscape for use within HTML Web pages. • JavaScript is loosely based on Java and it is built into all the major modern browsers. • JavaScript is a lightweight, interpreted programming language
  • 2. JAVASCRIPT SYNTAX • A JavaScript consists of JavaScript statements that are placed within the <script>... </script> HTML tags in a web page. • You can place the <script> tag containing your JavaScript anywhere within your web page but it is preferred way to keep it within the <body> tags.
  • 4. KEY POINTS • Whitespace and Line Breaks • Semicolons are Optional • But when formatted in a single line as follows, the semicolons are required: var1 = 10; var2 = 20; • Case Sensitive: Time, TIme and TIME will have different meanings in JavaScript.
  • 5. JavaScript Variables • Variables are declared with the var keyword as follows: <script> var money; var name; </script>
  • 6. If…else Statement The if...else statement is the next form of control statement that allows JavaScript to execute statements in more controlled way. Syntax: if (expression) { Statement(s) to be executed if expression is true } else{ Statement(s) to be executed if expression is false }
  • 7. Tutorial • Determine whether the entered year is leap or not. • Password checking.
  • 8. Recruitment questions • On facebook page: Microsoft Mobile Innovation Lab Send your solutions at: ekanshpurwar@gmail.com