SlideShare a Scribd company logo
Javascripts. pptt
INTRODUCTION
 JavaScript is a scripting language with first
class functioning.
 Is originally designed for the browser.
 It has nothing to do with java.
 Enhance the interaction of a user with the
webpage.
 Was developed by Brendan Eich in 1995.
 The language was initially called livescript and was
later renamed javascript.
 First version was created in 10 days.
 It’s the most popular language on Github.
Uses of javascript
 In The Browser
Used in making modern webpage/web app.
 Desktop
Windows 8 metro UI was built using it.
 IOT
JS is becoming the go to language.
 Real Time
Launches chat built filly in node.
What Can JS Do Today?
 Run a VM inside a browser.
 Run a game inside the browser.
 Serve 300 million users without shooting up the
cpu.
 Help in making power point presentation online.
 Make real time chat possible.
ABILITIES POSSESED BY JS
 Asynchronous Programming
 Functional Programming
 Writing cross-browser code
 Efficient memory management
Javascripts. pptt
SYNTAX
<html>
<head>
<script>
</script>
-------------------------------------------------------------------
JavaScript code
-------------------------------------------------------------------
</head>
<body>
</body>
</html>
CLASSIFICATION OF JS
Javascripts. pptt
DATATYPES
 NUMBER- Has double precision 64 bit format and
uses arithmetic and math operations.
 STRINGS - It supports any language and has
many built in functions and properties.
 BOOLEAN- Coerce any thing into Boolean using
Boolean().
 NULL - It is an assignment value and is used in
absence of value of a variable.
 UNDEFINED - If a variable is declared but is not
assigned a value then it has a undefined data
type.
OBJECTS
MOST IMPORTANT PART OF JS.EVERYTHING IN
AN OBJECT IS JS.
 FUNCTION – All functions have access to special
parameters insides its body like arguments etc.
 ARRAYS – Special type of objects has a special
property called length . It is one more than the
highest index of array.
OBJECTS
 DATE – Exact replica of java date class, lots of
date manipulation function inbuilt. Also lots of
good i18n function.
 Reg Exp – Known as regular expression is one of
the least exploited part of javascript and is good
for form validation.
Flow Control
JS supports almost every flow control structure.
• If then else
• while
• For
• Switch case
• Break
• Continue
ERROR HANDLING
One of the best way to handle errors is to write a
perfect code.
Another best option is to make use of try catches.
try{
Block of code to try
}
catch(err){
Block of code to handle errors
}
This ensures that the rest of the code continues to
execute.
SCOPE
Scope is the set of the variables you have access to.
In JS there are mainly two scopes.
• Local Scope
• Global Scope
Any variable declared inside a function using var
keyword
Has a local scope.
Any variable declared outside it has global scope.
*Special Case :Any variable declared inside a function
without the “var” keyword is assumed global and is
assigned to global scope.
This special case is called Automatic Global.
Javascripts. pptt
Document Object Model
 The document object represents the whole html
document.
 When html document is loaded in the browser, it
becomes a document object. It is the root
element that represents the html document. It
has properties and methods. By the help of
document object, we can add dynamic content to
our web page.
 As mentioned earlier, it is the object of window
 We can access and change the contents of
document by its methods.
DOM MANIPULATION
The Document Object Model (DOM) represents
that same document so it can be manipulated.
The DOM is an object-oriented representation of
the web page, which can be modified with a
scripting language such as JavaScript. The
W3C DOM and WHATWG DOM standards are
implemented in most modern browsers.
Javascripts. pptt
JS ON SERVER
Node.js, often referred to as just Node, is a
powerful tool that can run JavaScript
applications on both the server side as well as
the client side. Node.js can be used to write
static file servers, Web application frameworks,
messaging middleware, and servers for HTML5
multiplayer games.
Javascripts. pptt

More Related Content

What's hot (20)

PPTX
Java script writing javascript
Jesus Obenita Jr.
 
PPTX
Java Script An Introduction By HWA
Emma Wood
 
DOCX
Introduction of javascript
syeda zoya mehdi
 
PDF
Javascript
Momentum Design Lab
 
PDF
Javascript Roadmap - The Basics
Aswin Barath
 
PPTX
Weekly Session with the local .NET Developer Community
kazimanzurrashid
 
PPTX
Node js crash course session 1
Abdul Rahman Masri Attal
 
PPTX
Java script
Anuj Singh Rajput
 
PDF
Modern Javascript
Peter Perger
 
PDF
Introduction to TypeScript
NexThoughts Technologies
 
PPT
TypeScript Presentation
Patrick John Pacaña
 
PDF
Introduction to java script
Digital Shende
 
PDF
Build a Bot Workshop
Basant Medhat
 
PPTX
Js slideshare
SaleemMalik52
 
PPT
Javascript by geetanjali
Geetanjali Bhosale
 
PPTX
Javascript
Mozxai
 
PPTX
1. java script language fundamentals
Rajiv Gupta
 
PPTX
Javascript
Mayank Bhatt
 
DOCX
Javascript tutorial
Abhishek Kesharwani
 
PPTX
An overview of JavaScript
Poluru S
 
Java script writing javascript
Jesus Obenita Jr.
 
Java Script An Introduction By HWA
Emma Wood
 
Introduction of javascript
syeda zoya mehdi
 
Javascript Roadmap - The Basics
Aswin Barath
 
Weekly Session with the local .NET Developer Community
kazimanzurrashid
 
Node js crash course session 1
Abdul Rahman Masri Attal
 
Java script
Anuj Singh Rajput
 
Modern Javascript
Peter Perger
 
Introduction to TypeScript
NexThoughts Technologies
 
TypeScript Presentation
Patrick John Pacaña
 
Introduction to java script
Digital Shende
 
Build a Bot Workshop
Basant Medhat
 
Js slideshare
SaleemMalik52
 
Javascript by geetanjali
Geetanjali Bhosale
 
Javascript
Mozxai
 
1. java script language fundamentals
Rajiv Gupta
 
Javascript
Mayank Bhatt
 
Javascript tutorial
Abhishek Kesharwani
 
An overview of JavaScript
Poluru S
 

Similar to Javascripts. pptt (20)

PDF
Basics of JavaScript
Bala Narayanan
 
PDF
22519 - Client-Side Scripting Language (CSS) chapter 1 notes .pdf
sharvaridhokte
 
PPTX
JavaScript_III.pptx
rashmiisrani1
 
PPT
JavaScript - An Introduction
Manvendra Singh
 
PPT
JavaScript Tutorial
Bui Kiet
 
PDF
javascriptPresentation.pdf
wildcat9335
 
PPTX
Lecture 5 javascript
Mujtaba Haider
 
PPTX
Introduction to JavaScript, functions, DOM
LikhithaBrunda
 
PDF
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
AAFREEN SHAIKH
 
PDF
JavaScript Getting Started
Hazem Hagrass
 
PDF
Hsc IT Chap 3. Advanced javascript-1.pdf
AAFREEN SHAIKH
 
PPT
Java Script Programming on Web Application
SripathiRavi1
 
PDF
slides-students-C03.pdf
HARDIKGUPTAMCO21373
 
PPT
17javascript.ppt
bcanawakadalcollege
 
PPT
17javascript.ppt
PraveenRai90
 
PPT
Introduction to Javascript
Amit Tyagi
 
PPTX
IP Unit 2.pptx
Vigneshkumar Ponnusamy
 
PPT
JavaScript Workshop
Pamela Fox
 
PPT
lecture 6 javascript event and event handling.ppt
ULADATZ
 
PPT
17javascript.ppt17javascript.ppt17javascript.ppt
hodit46
 
Basics of JavaScript
Bala Narayanan
 
22519 - Client-Side Scripting Language (CSS) chapter 1 notes .pdf
sharvaridhokte
 
JavaScript_III.pptx
rashmiisrani1
 
JavaScript - An Introduction
Manvendra Singh
 
JavaScript Tutorial
Bui Kiet
 
javascriptPresentation.pdf
wildcat9335
 
Lecture 5 javascript
Mujtaba Haider
 
Introduction to JavaScript, functions, DOM
LikhithaBrunda
 
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
AAFREEN SHAIKH
 
JavaScript Getting Started
Hazem Hagrass
 
Hsc IT Chap 3. Advanced javascript-1.pdf
AAFREEN SHAIKH
 
Java Script Programming on Web Application
SripathiRavi1
 
slides-students-C03.pdf
HARDIKGUPTAMCO21373
 
17javascript.ppt
bcanawakadalcollege
 
17javascript.ppt
PraveenRai90
 
Introduction to Javascript
Amit Tyagi
 
IP Unit 2.pptx
Vigneshkumar Ponnusamy
 
JavaScript Workshop
Pamela Fox
 
lecture 6 javascript event and event handling.ppt
ULADATZ
 
17javascript.ppt17javascript.ppt17javascript.ppt
hodit46
 
Ad

Recently uploaded (20)

PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
THE TAME BIRD AND THE FREE BIRD.pptxxxxx
MarcChristianNicolas
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PPTX
Views on Education of Indian Thinkers Mahatma Gandhi.pptx
ShrutiMahanta1
 
PDF
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PPTX
BANDHA (BANDAGES) PPT.pptx ayurveda shalya tantra
rakhan78619
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PPTX
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PPSX
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
THE TAME BIRD AND THE FREE BIRD.pptxxxxx
MarcChristianNicolas
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
Views on Education of Indian Thinkers Mahatma Gandhi.pptx
ShrutiMahanta1
 
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
BANDHA (BANDAGES) PPT.pptx ayurveda shalya tantra
rakhan78619
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
community health nursing question paper 2.pdf
Prince kumar
 
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
Ad

Javascripts. pptt

  • 2. INTRODUCTION  JavaScript is a scripting language with first class functioning.  Is originally designed for the browser.  It has nothing to do with java.  Enhance the interaction of a user with the webpage.
  • 3.  Was developed by Brendan Eich in 1995.  The language was initially called livescript and was later renamed javascript.  First version was created in 10 days.  It’s the most popular language on Github.
  • 4. Uses of javascript  In The Browser Used in making modern webpage/web app.  Desktop Windows 8 metro UI was built using it.  IOT JS is becoming the go to language.  Real Time Launches chat built filly in node.
  • 5. What Can JS Do Today?  Run a VM inside a browser.  Run a game inside the browser.  Serve 300 million users without shooting up the cpu.  Help in making power point presentation online.  Make real time chat possible.
  • 6. ABILITIES POSSESED BY JS  Asynchronous Programming  Functional Programming  Writing cross-browser code  Efficient memory management
  • 11. DATATYPES  NUMBER- Has double precision 64 bit format and uses arithmetic and math operations.  STRINGS - It supports any language and has many built in functions and properties.  BOOLEAN- Coerce any thing into Boolean using Boolean().  NULL - It is an assignment value and is used in absence of value of a variable.  UNDEFINED - If a variable is declared but is not assigned a value then it has a undefined data type.
  • 12. OBJECTS MOST IMPORTANT PART OF JS.EVERYTHING IN AN OBJECT IS JS.  FUNCTION – All functions have access to special parameters insides its body like arguments etc.  ARRAYS – Special type of objects has a special property called length . It is one more than the highest index of array.
  • 13. OBJECTS  DATE – Exact replica of java date class, lots of date manipulation function inbuilt. Also lots of good i18n function.  Reg Exp – Known as regular expression is one of the least exploited part of javascript and is good for form validation.
  • 14. Flow Control JS supports almost every flow control structure. • If then else • while • For • Switch case • Break • Continue
  • 15. ERROR HANDLING One of the best way to handle errors is to write a perfect code. Another best option is to make use of try catches. try{ Block of code to try } catch(err){ Block of code to handle errors } This ensures that the rest of the code continues to execute.
  • 16. SCOPE Scope is the set of the variables you have access to. In JS there are mainly two scopes. • Local Scope • Global Scope Any variable declared inside a function using var keyword Has a local scope. Any variable declared outside it has global scope. *Special Case :Any variable declared inside a function without the “var” keyword is assumed global and is assigned to global scope. This special case is called Automatic Global.
  • 18. Document Object Model  The document object represents the whole html document.  When html document is loaded in the browser, it becomes a document object. It is the root element that represents the html document. It has properties and methods. By the help of document object, we can add dynamic content to our web page.  As mentioned earlier, it is the object of window  We can access and change the contents of document by its methods.
  • 19. DOM MANIPULATION The Document Object Model (DOM) represents that same document so it can be manipulated. The DOM is an object-oriented representation of the web page, which can be modified with a scripting language such as JavaScript. The W3C DOM and WHATWG DOM standards are implemented in most modern browsers.
  • 21. JS ON SERVER Node.js, often referred to as just Node, is a powerful tool that can run JavaScript applications on both the server side as well as the client side. Node.js can be used to write static file servers, Web application frameworks, messaging middleware, and servers for HTML5 multiplayer games.