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

More Related Content

PPTX
Introduction To JavaScript Ajax
PDF
JavaScript Roadmap III - ECMAScript
ODP
Css,javascript,php,mysql
PPTX
JavaScript Performance (at SFJS)
PPTX
Java script tutorial
PPTX
Java script an introduction
PDF
Visual resume
PPTX
Javascript
Introduction To JavaScript Ajax
JavaScript Roadmap III - ECMAScript
Css,javascript,php,mysql
JavaScript Performance (at SFJS)
Java script tutorial
Java script an introduction
Visual resume
Javascript

What's hot (19)

PPT
Java script202
PPTX
Unobtrusive js
PPTX
Web assembly: a brief overview
PPTX
SCCI'14 - Appsplash [2] Code!
PPTX
Coffee scripts with rails
PPTX
Node.js
PDF
Clojure Lightning Talk
PPTX
Introduction to mean stack
PDF
NoSQL for great good [hanoi.rb talk]
PDF
Javascript cheatsheet
DOCX
Javascript - Today's trending script
PPTX
Advance java session 9
PPTX
Java script
PDF
Reintroducing Web Technology
PDF
PPT
Get MEAN! Node.js and the MEAN stack
PPTX
Learn VBScript – Part 1 of 4
PPT
Jsp(java server pages)
PPTX
Client side scripting and server side scripting
Java script202
Unobtrusive js
Web assembly: a brief overview
SCCI'14 - Appsplash [2] Code!
Coffee scripts with rails
Node.js
Clojure Lightning Talk
Introduction to mean stack
NoSQL for great good [hanoi.rb talk]
Javascript cheatsheet
Javascript - Today's trending script
Advance java session 9
Java script
Reintroducing Web Technology
Get MEAN! Node.js and the MEAN stack
Learn VBScript – Part 1 of 4
Jsp(java server pages)
Client side scripting and server side scripting
Ad

Viewers also liked (20)

PDF
电动汽车动力蓄电池回收利用技术政策(2015 年版)
PPSX
Portfolio-illustrations-001-show
PPTX
PDF
Sales Focus: ENGAGE
PDF
Wielkopolska
PPTX
A new beginning quiz!
PPTX
Research into horror genre
PPT
Agr+3506+l8+sexual+propagation
PPTX
Harvard Graduate School Education: teaching cs to teachers
PPTX
Sinister scuptor
ODT
Raspberry Pi
PPTX
Mga krusada
PDF
Rightclick profile
PPTX
Ervan jonathan
PPTX
MIT to the NYSE: Journey from University Tech to M&A
PPTX
PDF
United Nations and what it has to do with ไทยแลนด์
PPTX
Zabytki
DOC
Knowledge management
PPTX
电动汽车动力蓄电池回收利用技术政策(2015 年版)
Portfolio-illustrations-001-show
Sales Focus: ENGAGE
Wielkopolska
A new beginning quiz!
Research into horror genre
Agr+3506+l8+sexual+propagation
Harvard Graduate School Education: teaching cs to teachers
Sinister scuptor
Raspberry Pi
Mga krusada
Rightclick profile
Ervan jonathan
MIT to the NYSE: Journey from University Tech to M&A
United Nations and what it has to do with ไทยแลนด์
Zabytki
Knowledge management
Ad

Similar to Javascript (20)

DOC
Introduction to java script
PDF
CS8651- Unit 2 - JS.internet programming paper anna university -2017 regulation
PPSX
JavaScript Comprehensive Overview
PPTX
JavaScript New Tutorial Class XI and XII.pptx
DOC
Java script by Act Academy
PPTX
Unit 4 Java script.pptx
PPT
basics of javascript and fundamentals ppt
PPT
Javascript overview and introduction to js
PPT
JS-Slides-1 (1).ppt vbefgvsdfgdfgfggergertgrtgrtgt
PPT
JS-Slides_for_begineers_javascript-1.ppt
PPT
java script programming slide 1 from tn state
PPTX
JavaScript: Implementations And Applications
PPT
JS-Slides-1hgvhfhgftgfvujguyghvhjbjbnnhg
DOC
Basics java scripts
PPT
Java script
PPT
Java script
PPT
JAVA SCRIPT
PPT
Java script
PPTX
Java script Basic
PPTX
Java script
Introduction to java script
CS8651- Unit 2 - JS.internet programming paper anna university -2017 regulation
JavaScript Comprehensive Overview
JavaScript New Tutorial Class XI and XII.pptx
Java script by Act Academy
Unit 4 Java script.pptx
basics of javascript and fundamentals ppt
Javascript overview and introduction to js
JS-Slides-1 (1).ppt vbefgvsdfgdfgfggergertgrtgrtgt
JS-Slides_for_begineers_javascript-1.ppt
java script programming slide 1 from tn state
JavaScript: Implementations And Applications
JS-Slides-1hgvhfhgftgfvujguyghvhjbjbnnhg
Basics java scripts
Java script
Java script
JAVA SCRIPT
Java script
Java script Basic
Java script

Recently uploaded (20)

PDF
SEH5E Unveiled: Enhancements and Key Takeaways for Certification Success
PPTX
WN UNIT-II CH4_MKaruna_BapatlaEngineeringCollege.pptx
PDF
MACCAFERRY GUIA GAVIONES TERRAPLENES EN ESPAÑOL
PPTX
CS6006 - CLOUD COMPUTING - Module - 1.pptx
PPTX
Principal presentation for NAAC (1).pptx
PDF
Present and Future of Systems Engineering: Air Combat Systems
PDF
UEFA_Embodied_Carbon_Emissions_Football_Infrastructure.pdf
PDF
Project_Mgmt_Institute_-Marc Marc Marc .pdf
PPTX
AI-Reporting for Emerging Technologies(BS Computer Engineering)
PDF
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
PPTX
chapter 1.pptx dotnet technology introduction
PDF
VSL-Strand-Post-tensioning-Systems-Technical-Catalogue_2019-01.pdf
PDF
UEFA_Carbon_Footprint_Calculator_Methology_2.0.pdf
PDF
Cryptography and Network Security-Module-I.pdf
PPTX
Wireless sensor networks (WSN) SRM unit 2
PPTX
Micro1New.ppt.pptx the mai themes of micfrobiology
PPTX
Module1.pptxrjkeieuekwkwoowkemehehehrjrjrj
PDF
Designing Fault-Tolerant Architectures for Resilient Oracle Cloud ERP and HCM...
PDF
Micro 4 New.ppt.pdf a servay of cells and microorganism
PPTX
Agentic Artificial Intelligence (Agentic AI).pptx
SEH5E Unveiled: Enhancements and Key Takeaways for Certification Success
WN UNIT-II CH4_MKaruna_BapatlaEngineeringCollege.pptx
MACCAFERRY GUIA GAVIONES TERRAPLENES EN ESPAÑOL
CS6006 - CLOUD COMPUTING - Module - 1.pptx
Principal presentation for NAAC (1).pptx
Present and Future of Systems Engineering: Air Combat Systems
UEFA_Embodied_Carbon_Emissions_Football_Infrastructure.pdf
Project_Mgmt_Institute_-Marc Marc Marc .pdf
AI-Reporting for Emerging Technologies(BS Computer Engineering)
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
chapter 1.pptx dotnet technology introduction
VSL-Strand-Post-tensioning-Systems-Technical-Catalogue_2019-01.pdf
UEFA_Carbon_Footprint_Calculator_Methology_2.0.pdf
Cryptography and Network Security-Module-I.pdf
Wireless sensor networks (WSN) SRM unit 2
Micro1New.ppt.pptx the mai themes of micfrobiology
Module1.pptxrjkeieuekwkwoowkemehehehrjrjrj
Designing Fault-Tolerant Architectures for Resilient Oracle Cloud ERP and HCM...
Micro 4 New.ppt.pdf a servay of cells and microorganism
Agentic Artificial Intelligence (Agentic AI).pptx

Javascript