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

PDF
JavaScript Roadmap III - ECMAScript
PPT
Java Script
PPTX
Java Script
PPTX
Introduction to Java Script
PPT
Java script
PPTX
JavaScript: Implementations And Applications
PPT
Java script
PPT
Java script
JavaScript Roadmap III - ECMAScript
Java Script
Java Script
Introduction to Java Script
Java script
JavaScript: Implementations And Applications
Java script
Java script

What's hot (20)

PPTX
Java script writing javascript
PPTX
Java Script An Introduction By HWA
DOCX
Introduction of javascript
PDF
PDF
Javascript Roadmap - The Basics
PPTX
Weekly Session with the local .NET Developer Community
PPTX
Node js crash course session 1
PPTX
Java script
PDF
Modern Javascript
PDF
Introduction to TypeScript
PPT
TypeScript Presentation
PDF
Introduction to java script
PDF
Build a Bot Workshop
PPTX
Js slideshare
PPT
Javascript by geetanjali
PPTX
Javascript
PPTX
1. java script language fundamentals
PPTX
Javascript
DOCX
Javascript tutorial
PPTX
An overview of JavaScript
Java script writing javascript
Java Script An Introduction By HWA
Introduction of javascript
Javascript Roadmap - The Basics
Weekly Session with the local .NET Developer Community
Node js crash course session 1
Java script
Modern Javascript
Introduction to TypeScript
TypeScript Presentation
Introduction to java script
Build a Bot Workshop
Js slideshare
Javascript by geetanjali
Javascript
1. java script language fundamentals
Javascript
Javascript tutorial
An overview of JavaScript
Ad

Similar to Javascripts. pptt (20)

DOC
Basics java scripts
PPTX
Java Script - A New Look
PPT
Introduction to mean and mern || Event by DSC UNIDEB
PPTX
Introduction to Java script for web .pptx
PPTX
HNDIT1022 Week 08, 09 10 Theory web .pptx
PPTX
WTA-MODULE-4.pptx
PDF
Web programming UNIT II by Bhavsingh Maloth
PDF
WEB PROGRAMMING UNIT II BY BHAVSINGH MALOTH
PPTX
Node js Powerpoint Presentation by PDEU Gandhinagar
DOCX
Java Script
PPTX
DOC
Java script by Act Academy
PPT
J Query
PDF
Best node js course
PPTX
Advanced JavaScript
PPTX
Front End Development | Introduction
DOC
Krishnagopal Thogiti_Java
PPTX
An introduction to DOM , JAVASCRIPT , JQUERY, AJAX and JSON
PPTX
Introduction to ReactJS UI Web Dev .pptx
PDF
Javascript pdf for beginners easy levell
Basics java scripts
Java Script - A New Look
Introduction to mean and mern || Event by DSC UNIDEB
Introduction to Java script for web .pptx
HNDIT1022 Week 08, 09 10 Theory web .pptx
WTA-MODULE-4.pptx
Web programming UNIT II by Bhavsingh Maloth
WEB PROGRAMMING UNIT II BY BHAVSINGH MALOTH
Node js Powerpoint Presentation by PDEU Gandhinagar
Java Script
Java script by Act Academy
J Query
Best node js course
Advanced JavaScript
Front End Development | Introduction
Krishnagopal Thogiti_Java
An introduction to DOM , JAVASCRIPT , JQUERY, AJAX and JSON
Introduction to ReactJS UI Web Dev .pptx
Javascript pdf for beginners easy levell
Ad

Recently uploaded (20)

PDF
01-Introduction-to-Information-Management.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
master seminar digital applications in india
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Pre independence Education in Inndia.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Pharma ospi slides which help in ospi learning
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Business Ethics Teaching Materials for college
PDF
Classroom Observation Tools for Teachers
01-Introduction-to-Information-Management.pdf
Cell Types and Its function , kingdom of life
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPH.pptx obstetrics and gynecology in nursing
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
master seminar digital applications in india
Supply Chain Operations Speaking Notes -ICLT Program
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Pre independence Education in Inndia.pdf
TR - Agricultural Crops Production NC III.pdf
Microbial disease of the cardiovascular and lymphatic systems
Pharma ospi slides which help in ospi learning
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Business Ethics Teaching Materials for college
Classroom Observation Tools for Teachers

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.