SlideShare a Scribd company logo
JavaScript | LazyBrain
Web Development
Velimir Bulatovic
JavaScript | Introduction
JavaScript (JS) is a full-fledged dynamic programming language that, when
applied to an HTML document, can provide dynamic interactivity on websites.
It was invented by Brendan Eich, co-founder of the Mozilla project, the Mozilla
Foundation, and the Mozilla Corporation.
JavaScript was first known as LiveScript.
JavaScript | Introduction
JavaScript is a scripting or programming language that allows you to
implement complex things on web pages
ECMAScript is the official name of the language.
JavaScript and Java are completely different languages,
both in concept and design.
Advantages of JavaScript
● Less server interaction − You can validate user input before sending the
page off to the server. This saves server traffic, which means less load on
your server.
● Immediate feedback to the visitors − They don't have to wait for a page
reload to see if they have forgotten to enter something.
● Increased interactivity − You can create interfaces that react when the
user hovers over them with a mouse or activates them via the keyboard.
● Richer interfaces − You can use JavaScript to include such items as drag-
and-drop components and sliders to give a Rich Interface to your site
visitors.
Limitations of JavaScript
● Client-side JavaScript does not allow the reading or writing of files. This
has been kept for security reason.
● JavaScript cannot be used for networking applications because there is
no such support available.
● JavaScript doesn't have any multithreading or multiprocessor
capabilities.
Syntax | JavaScript
● JavaScript ignores whitespace and line breaks
● Semicolons are optional
● JavaScript is a case-sensitive language
● JavaScript supports both C-style and C++ style comments
Browsers | JavaScript
● How to enable JavaScript
● Non-JavaScript Browsers
Variables | JavaScript
● Primitive data types
○ Number
○ String
○ Boolean
*All numbers in JavaScript are represented as floating-point values.
JavaScript represents numbers using the 64-bit floating-point format defined by the IEEE 754 standard.
Variables | JavaScript
● Declare
● Assign the value
● Scope
○ Global
○ Local
● JavaScript reserved words
Operators | JavaScript
● Arithmetic ( +, -, *, /, %, ++, -- )
● Comparison (==, !=, >, <, >=, <= )
● Logical (or Relational) ( &&, || )
● Assignment operators ( =, +=, -=, *=, /=, %= )
● Conditional (or ternary) ( ? : (Conditional ) )
Control Flow | JavaScript
● If .. else
● Switch Case
● While loop
● For loop
● Loop Control
Functions | JavaScript
A function is a group of reusable code which can be called anywhere in your
program.
● Definition
● Parameters
● Return statement
Events | JavaScript
● onclick
● onsubmit
● onmouseover ( onmouseout )
● onload
● offline
● onresize
● onscroll
● onplay
● onpause, onfocus, onerror, ondrop ...
Objects | JavaScript
● Encapsulation − the capability to store related information, whether data or
methods, together in an object.
● Aggregation − the capability to store one object inside another object.
● Inheritance − the capability of a class to rely upon another class (or
number of classes) for some of its properties and methods.
● Polymorphism − the capability to write one function or method that works
in a variety of different ways.
Array | JavaScript
● var fruits = new Array( "apple", "orange", "mango" );
● array.join()
● array.push()
● array.sort()
● ..
Error Handling | JavaScript
● Syntax Errors
● Runtime Errors
● Logical Errors
● try .. catch ..finaly statement
● throw statement
● onerror method
Form Validation | JavaScript
● Basic Validation
● Data Format Validation
Introduction | JSON
● JSON: JavaScript Object Notation
● JSON is a syntax for storing and exchanging data
● JSON is text, written with JavaScript object notation
● { name : "John" }
● { "name" : "John" }
Object vs Array | JSON
{
"employee":{ "name":"John", "age":30, "city":"New York" }
}
{
"employees":[ "John", "Anna", "Peter" ]
}
Thank you
Velimir Bulatovic
LazyBrain | Digital Intelligence

More Related Content

What's hot (17)

PPTX
Js slideshare
SaleemMalik52
 
PDF
Introduction to rails
Go Asgard
 
PDF
Scala.js
kazuhisa kawashima
 
PPTX
Automate - Madhu Kanoor, Greg McCullough - ManageIQ Design Summit 2016
ManageIQ
 
PPTX
F# type providers
Antya Dev
 
PPTX
Learn To Code: Introduction to c
SadhanaParameswaran
 
PDF
JavaScript - Chapter 3 - Introduction
WebStackAcademy
 
PPTX
Introduction to Javascript By Satyen
Satyen Pandya
 
PPT
Ajax
AdamGyohannes
 
PPTX
Learn TypeScript from scratch
Mohd Manzoor Ahmed
 
PPTX
Introduction to Reactjs
NodeXperts
 
PDF
Intro to ember.js
Leo Hernandez
 
PDF
Angular - Chapter 2 - TypeScript Programming
WebStackAcademy
 
PPTX
Introduction to JavaScript
Marlon Jamera
 
Js slideshare
SaleemMalik52
 
Introduction to rails
Go Asgard
 
Automate - Madhu Kanoor, Greg McCullough - ManageIQ Design Summit 2016
ManageIQ
 
F# type providers
Antya Dev
 
Learn To Code: Introduction to c
SadhanaParameswaran
 
JavaScript - Chapter 3 - Introduction
WebStackAcademy
 
Introduction to Javascript By Satyen
Satyen Pandya
 
Learn TypeScript from scratch
Mohd Manzoor Ahmed
 
Introduction to Reactjs
NodeXperts
 
Intro to ember.js
Leo Hernandez
 
Angular - Chapter 2 - TypeScript Programming
WebStackAcademy
 
Introduction to JavaScript
Marlon Jamera
 

Similar to JavaScript | Introduction (20)

PPTX
WT Module-3.pptx
RamyaH11
 
PPTX
Introduction to JavaScript
SadhanaParameswaran
 
PDF
Front-End Developer's Career Roadmap
WebStackAcademy
 
PPTX
Java script
Abhishek Kesharwani
 
PDF
Iwt note(module 2)
SANTOSH RATH
 
PDF
GWT - Building Rich Internet Applications Using OO Tools
barciszewski
 
PDF
WEB MODULE 3.pdf
Deepika A B
 
PDF
CS8651- Unit 2 - JS.internet programming paper anna university -2017 regulation
amrashbhanuabdul
 
PPTX
JavaScript New Tutorial Class XI and XII.pptx
rish15r890
 
PPTX
WTA-MODULE-4.pptx
ChayapathiAR
 
ODP
Basic of Java
Ajeet Kumar Verma
 
PPTX
JavaScripts & jQuery
Asanka Indrajith
 
PDF
Dotnet content
maheshcs1
 
PPTX
Node.js Web Apps @ ebay scale
Dmytro Semenov
 
PDF
HelsinkiJS - Clojurescript for Javascript Developers
Juho Teperi
 
PPTX
Final Java-script.pptx
AlkanthiSomesh
 
PPTX
An Intro to Scala for PHP Developers
HuffPost Code
 
PDF
JavascriptMVC: Another choice of web framework
Alive Kuo
 
PDF
JavaScript Getting Started
Hazem Hagrass
 
PDF
java-scriptcdvcx vnbm,azsdfghjkml;sxdfcgmndxfcgvhb nmfctgvbhjnm ,cfgvb nm,xc ...
kavigamage62
 
WT Module-3.pptx
RamyaH11
 
Introduction to JavaScript
SadhanaParameswaran
 
Front-End Developer's Career Roadmap
WebStackAcademy
 
Java script
Abhishek Kesharwani
 
Iwt note(module 2)
SANTOSH RATH
 
GWT - Building Rich Internet Applications Using OO Tools
barciszewski
 
WEB MODULE 3.pdf
Deepika A B
 
CS8651- Unit 2 - JS.internet programming paper anna university -2017 regulation
amrashbhanuabdul
 
JavaScript New Tutorial Class XI and XII.pptx
rish15r890
 
WTA-MODULE-4.pptx
ChayapathiAR
 
Basic of Java
Ajeet Kumar Verma
 
JavaScripts & jQuery
Asanka Indrajith
 
Dotnet content
maheshcs1
 
Node.js Web Apps @ ebay scale
Dmytro Semenov
 
HelsinkiJS - Clojurescript for Javascript Developers
Juho Teperi
 
Final Java-script.pptx
AlkanthiSomesh
 
An Intro to Scala for PHP Developers
HuffPost Code
 
JavascriptMVC: Another choice of web framework
Alive Kuo
 
JavaScript Getting Started
Hazem Hagrass
 
java-scriptcdvcx vnbm,azsdfghjkml;sxdfcgmndxfcgvhb nmfctgvbhjnm ,cfgvb nm,xc ...
kavigamage62
 
Ad

Recently uploaded (20)

PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
July Patch Tuesday
Ivanti
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Ad

JavaScript | Introduction

  • 1. JavaScript | LazyBrain Web Development Velimir Bulatovic
  • 2. JavaScript | Introduction JavaScript (JS) is a full-fledged dynamic programming language that, when applied to an HTML document, can provide dynamic interactivity on websites. It was invented by Brendan Eich, co-founder of the Mozilla project, the Mozilla Foundation, and the Mozilla Corporation. JavaScript was first known as LiveScript.
  • 3. JavaScript | Introduction JavaScript is a scripting or programming language that allows you to implement complex things on web pages ECMAScript is the official name of the language. JavaScript and Java are completely different languages, both in concept and design.
  • 4. Advantages of JavaScript ● Less server interaction − You can validate user input before sending the page off to the server. This saves server traffic, which means less load on your server. ● Immediate feedback to the visitors − They don't have to wait for a page reload to see if they have forgotten to enter something. ● Increased interactivity − You can create interfaces that react when the user hovers over them with a mouse or activates them via the keyboard. ● Richer interfaces − You can use JavaScript to include such items as drag- and-drop components and sliders to give a Rich Interface to your site visitors.
  • 5. Limitations of JavaScript ● Client-side JavaScript does not allow the reading or writing of files. This has been kept for security reason. ● JavaScript cannot be used for networking applications because there is no such support available. ● JavaScript doesn't have any multithreading or multiprocessor capabilities.
  • 6. Syntax | JavaScript ● JavaScript ignores whitespace and line breaks ● Semicolons are optional ● JavaScript is a case-sensitive language ● JavaScript supports both C-style and C++ style comments
  • 7. Browsers | JavaScript ● How to enable JavaScript ● Non-JavaScript Browsers
  • 8. Variables | JavaScript ● Primitive data types ○ Number ○ String ○ Boolean *All numbers in JavaScript are represented as floating-point values. JavaScript represents numbers using the 64-bit floating-point format defined by the IEEE 754 standard.
  • 9. Variables | JavaScript ● Declare ● Assign the value ● Scope ○ Global ○ Local ● JavaScript reserved words
  • 10. Operators | JavaScript ● Arithmetic ( +, -, *, /, %, ++, -- ) ● Comparison (==, !=, >, <, >=, <= ) ● Logical (or Relational) ( &&, || ) ● Assignment operators ( =, +=, -=, *=, /=, %= ) ● Conditional (or ternary) ( ? : (Conditional ) )
  • 11. Control Flow | JavaScript ● If .. else ● Switch Case ● While loop ● For loop ● Loop Control
  • 12. Functions | JavaScript A function is a group of reusable code which can be called anywhere in your program. ● Definition ● Parameters ● Return statement
  • 13. Events | JavaScript ● onclick ● onsubmit ● onmouseover ( onmouseout ) ● onload ● offline ● onresize ● onscroll ● onplay ● onpause, onfocus, onerror, ondrop ...
  • 14. Objects | JavaScript ● Encapsulation − the capability to store related information, whether data or methods, together in an object. ● Aggregation − the capability to store one object inside another object. ● Inheritance − the capability of a class to rely upon another class (or number of classes) for some of its properties and methods. ● Polymorphism − the capability to write one function or method that works in a variety of different ways.
  • 15. Array | JavaScript ● var fruits = new Array( "apple", "orange", "mango" ); ● array.join() ● array.push() ● array.sort() ● ..
  • 16. Error Handling | JavaScript ● Syntax Errors ● Runtime Errors ● Logical Errors ● try .. catch ..finaly statement ● throw statement ● onerror method
  • 17. Form Validation | JavaScript ● Basic Validation ● Data Format Validation
  • 18. Introduction | JSON ● JSON: JavaScript Object Notation ● JSON is a syntax for storing and exchanging data ● JSON is text, written with JavaScript object notation ● { name : "John" } ● { "name" : "John" }
  • 19. Object vs Array | JSON { "employee":{ "name":"John", "age":30, "city":"New York" } } { "employees":[ "John", "Anna", "Peter" ] }
  • 20. Thank you Velimir Bulatovic LazyBrain | Digital Intelligence

Editor's Notes