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

PPTX
Introduction To JavaScript Ajax
PPTX
Javascript 01 (js)
PDF
Sharable of qualities of clean code
PPTX
JavaScript operators
PDF
Running Through Typescript
PPTX
React native introduction (Mobile Warsaw)
PDF
Server-side React with Headless CMS – Exove
PPTX
Learn JavaScript From Scratch
Introduction To JavaScript Ajax
Javascript 01 (js)
Sharable of qualities of clean code
JavaScript operators
Running Through Typescript
React native introduction (Mobile Warsaw)
Server-side React with Headless CMS – Exove
Learn JavaScript From Scratch

What's hot (17)

PPTX
Js slideshare
PDF
Introduction to rails
PDF
PPTX
Automate - Madhu Kanoor, Greg McCullough - ManageIQ Design Summit 2016
PPTX
F# type providers
PPTX
Learn To Code: Introduction to c
PDF
JavaScript - Chapter 3 - Introduction
PPTX
Introduction to Javascript By Satyen
PPT
PPTX
Learn TypeScript from scratch
PPTX
Introduction to Reactjs
PDF
Intro to ember.js
PDF
Angular - Chapter 2 - TypeScript Programming
PPTX
Introduction to JavaScript
Js slideshare
Introduction to rails
Automate - Madhu Kanoor, Greg McCullough - ManageIQ Design Summit 2016
F# type providers
Learn To Code: Introduction to c
JavaScript - Chapter 3 - Introduction
Introduction to Javascript By Satyen
Learn TypeScript from scratch
Introduction to Reactjs
Intro to ember.js
Angular - Chapter 2 - TypeScript Programming
Introduction to JavaScript
Ad

Similar to JavaScript | Introduction (20)

PPTX
Java script
PDF
CS8651- Unit 2 - JS.internet programming paper anna university -2017 regulation
PPT
Introduction to Javascript
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
PPTX
Unit III.pptx IT3401 web essentials presentatio
PPTX
Introduction to Javascript
PPTX
JavaScript New Tutorial Class XI and XII.pptx
PPTX
Basics of Javascript
PDF
8 introduction to_java_script
PPTX
Java script
PDF
Basics of JavaScript
PDF
IT2255 Web Essentials - Unit III Client-Side Processing and Scripting
PPTX
WT Module-3.pptx
PDF
javascriptPresentation.pdf
PPTX
Lecture 5 javascript
PPTX
Cordova training : Day 3 - Introduction to Javascript
PDF
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
PPTX
JavaScript Fundamentals & JQuery
PPT
Presentation JavaScript Introduction Data Types Variables Control Structure
PDF
Hsc IT Chap 3. Advanced javascript-1.pdf
Java script
CS8651- Unit 2 - JS.internet programming paper anna university -2017 regulation
Introduction to Javascript
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
Unit III.pptx IT3401 web essentials presentatio
Introduction to Javascript
JavaScript New Tutorial Class XI and XII.pptx
Basics of Javascript
8 introduction to_java_script
Java script
Basics of JavaScript
IT2255 Web Essentials - Unit III Client-Side Processing and Scripting
WT Module-3.pptx
javascriptPresentation.pdf
Lecture 5 javascript
Cordova training : Day 3 - Introduction to Javascript
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
JavaScript Fundamentals & JQuery
Presentation JavaScript Introduction Data Types Variables Control Structure
Hsc IT Chap 3. Advanced javascript-1.pdf
Ad

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
cuic standard and advanced reporting.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Chapter 2 Digital Image Fundamentals.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Advanced IT Governance
PPT
Teaching material agriculture food technology
20250228 LYD VKU AI Blended-Learning.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
cuic standard and advanced reporting.pdf
Understanding_Digital_Forensics_Presentation.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
GamePlan Trading System Review: Professional Trader's Honest Take
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
The Rise and Fall of 3GPP – Time for a Sabbatical?
Advanced Soft Computing BINUS July 2025.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
NewMind AI Weekly Chronicles - August'25 Week I
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Chapter 2 Digital Image Fundamentals.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Advanced IT Governance
Teaching material agriculture food technology

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