SlideShare a Scribd company logo
JavaScript Tutorial For Beginners | JavaScript Training | JavaScript Programming Tutorial | Edureka
Agenda
What is JavaScript? Why learn JavaScript? JavaScript Fundamentals
Introduction To JavaScript
What is JavaScript?
Web pages more interactive
Interpreted language
Interpreter
Runs on the client’s computer
JavaScript is a scripting language that allows you to implement complex things on web
pages.
JavaScript Stats
What Can JavaScript do?
Web application
Website
Games
Smart watches
JavaScript Framework
AngularJS
ReactJS
Meteor
jQuery
The Big Picture – HTML, CSS & JavaScript
HTML CSS JavaScript
Top Websites Built Using JavaScript
Benefits Of JavaScript
Easy-peezy
Easy to learn Speed
Benefits of JavaScript
Provides rich framework
Makes web pages more
interactive
Benefits Of JavaScript
No compilation needed Platform Independent
JavaScript
Fundamentals
Variables
Memory location
Variable name
Variable is a name given to a memory location which acts as a container for storing data.
Syntax:
1 let age;
2 age = 22;
Constants
Constants are fixed values that do not change during execution time.
Syntax:
1
2
const mybirthday;
mybirthday = ‘03.08.1996’ ;
Examples of constants
Primitive Data Types
Strings Boolean
TRUE
FALSE
Numbers
Null Undefined
Reference Data Types - Objects
An object is a standalone entity, with properties and type.
Syntax:
1 let object1 = { };
Name
Age
Eye-colour
Reference Data Types - Arrays
0 1 2 3 4
An array is a data structure that contains a list of elements. These elements are all of the
same data type, such as an integer or string.
Syntax:
1
2
let arr[ ];
let arr = new Array( ) ;
Reference Data Types - Functions
A function is a block of organized, reusable code that is used to perform a single, related action.
Functions
Predefined
Functions
User Defined
Functions
Syntax:
1
2
3
function greetings( ) {
alert(‘ Hello everyone! ‘);
}
name of the function
enter parameters here
Conditional Statements
Conditional statement is a set of rules performed if a certain condition is met. It is like an
‘If-Then’ statement. (IF a condition is met, THEN an action is performed)
If Statement
If code
End
Start
True
Condition
False
Exit
Syntax:
1
2
3
if(condition) {
statement;
}
Conditional Statements
Conditional statement is a set of rules performed if a certain condition is met. It is like an
‘If-Then’ statement. (IF a condition is met, THEN an action is performed)
Else If Statement
If code
End
Start
True
Condition
False
Else if code
Syntax:
1
2
3
4
5
6
if(condition) {
statement a;
}
else (condition) {
statement b;
}
Loops
Loops are used to repeat a specific block until some end condition is met.
Loops
do whilewhilefor
Start
Conditional Code
Condition
False
True
End loop
While Loop
While the condition is true, the code within the loop is executed.
Start
Conditional Code
End
True
False
Condition
While loop
Syntax:
1
2
3
while(condition) {
loop code;
}
Do While Loop
This loop will first execute the code, then check the condition and while
the condition holds true, execute repeatedly.
Start
Conditional Code
End
True
False
Condition
Do while loop
Syntax:
1
2
3
4
do {
loop code;
}
while(condition);
For Loop
Repeatedly executes the loop code while a given condition is TRUE. It
tests the condition before executing the loop body.
For loop
Start
Execute Statement (s)
End
Next item from
sequence
If no more itemsItem from
sequenceSyntax:
1
2
3
for(begin; condition; step) {
loop code;
}
Switch Case
The switch statement is used to perform
different actions based on different
conditions.
Syntax:
1
2
3
4
5
6
7
8
9
10
switch(expression) {
case 1 :
code block 1
break;
case 2 :
code block 2
break;
default :
code block 3
}
Start
Switch expression
End
Case 1
Case 2
Default
Code block 1
break;
Code block 2
break;
Default statement
False
False
JavaScript Tutorial For Beginners | JavaScript Training | JavaScript Programming Tutorial | Edureka

More Related Content

What's hot (20)

PPTX
Lab #2: Introduction to Javascript
Walid Ashraf
 
PPTX
Javascript 101
Shlomi Komemi
 
PDF
Javascript basics
shreesenthil
 
PPT
Javascript
mussawir20
 
PPT
JavaScript - An Introduction
Manvendra Singh
 
PPTX
Javascript
Nagarajan
 
PDF
jQuery for beginners
Arulmurugan Rajaraman
 
PPT
Js ppt
Rakhi Thota
 
PPT
Java Script ppt
Priya Goyal
 
PPT
Angular Introduction By Surekha Gadkari
Surekha Gadkari
 
PPTX
jQuery
Dileep Mishra
 
PDF
JavaScript guide 2020 Learn JavaScript
Laurence Svekis ✔
 
PDF
JavaScript Programming
Sehwan Noh
 
PDF
Basics of JavaScript
Bala Narayanan
 
PPTX
Introduction to JavaScript Basics.
Hassan Ahmed Baig - Web Developer
 
PDF
JavaScript - Chapter 11 - Events
WebStackAcademy
 
PPT
Introduction to JavaScript (1).ppt
MuhammadRehan856177
 
PPT
JavaScript & Dom Manipulation
Mohammed Arif
 
PPT
Javascript arrays
Hassan Dar
 
PPTX
JSON: The Basics
Jeff Fox
 
Lab #2: Introduction to Javascript
Walid Ashraf
 
Javascript 101
Shlomi Komemi
 
Javascript basics
shreesenthil
 
Javascript
mussawir20
 
JavaScript - An Introduction
Manvendra Singh
 
Javascript
Nagarajan
 
jQuery for beginners
Arulmurugan Rajaraman
 
Js ppt
Rakhi Thota
 
Java Script ppt
Priya Goyal
 
Angular Introduction By Surekha Gadkari
Surekha Gadkari
 
JavaScript guide 2020 Learn JavaScript
Laurence Svekis ✔
 
JavaScript Programming
Sehwan Noh
 
Basics of JavaScript
Bala Narayanan
 
Introduction to JavaScript Basics.
Hassan Ahmed Baig - Web Developer
 
JavaScript - Chapter 11 - Events
WebStackAcademy
 
Introduction to JavaScript (1).ppt
MuhammadRehan856177
 
JavaScript & Dom Manipulation
Mohammed Arif
 
Javascript arrays
Hassan Dar
 
JSON: The Basics
Jeff Fox
 

Similar to JavaScript Tutorial For Beginners | JavaScript Training | JavaScript Programming Tutorial | Edureka (20)

PPTX
Cordova training : Day 3 - Introduction to Javascript
Binu Paul
 
PPT
Javascript sivasoft
ch samaram
 
PPTX
Basics of Programming.pptx
SoumitraChakraborty28
 
PPTX
Paca java script slid
pacatarpit
 
PPTX
c & c++ logic building concepts practice.pptx
rawatsatish0327
 
PPTX
Java Script Basic to Advanced For Beginner to Advanced Learner.pptx
sanjaydhumal26
 
PPTX
FFW Gabrovo PMG - JavaScript 1
Toni Kolev
 
PPTX
Software fundamentals
Susan Winters
 
PPTX
Computer science principals in terms of Programming
Umair Jameel
 
PPTX
Unit - 4 all script are here Javascript.pptx
kushwahanitesh592
 
PPSX
DIWE - Programming with JavaScript
Rasan Samarasinghe
 
PPTX
Introduction to Client-Side Javascript
Julie Iskander
 
PDF
Lecture1.pdf
SakhilejasonMsibi
 
PPT
Javascript
Vishwa Patel
 
PPTX
Powerpoint about JavaScript presentation
XaiMaeChanelleSopsop
 
PDF
Java Script 2nd lec.pdfsssssssssssssssss
ksjawyyy
 
PPT
Javascript
Mallikarjuna G D
 
PPTX
Survelaine murillo ppt
Survelaine Murillo
 
PPTX
javascriptbasicsPresentationsforDevelopers
Ganesh Bhosale
 
PDF
Java Script Basics presentation of program
MarcosLuis32
 
Cordova training : Day 3 - Introduction to Javascript
Binu Paul
 
Javascript sivasoft
ch samaram
 
Basics of Programming.pptx
SoumitraChakraborty28
 
Paca java script slid
pacatarpit
 
c & c++ logic building concepts practice.pptx
rawatsatish0327
 
Java Script Basic to Advanced For Beginner to Advanced Learner.pptx
sanjaydhumal26
 
FFW Gabrovo PMG - JavaScript 1
Toni Kolev
 
Software fundamentals
Susan Winters
 
Computer science principals in terms of Programming
Umair Jameel
 
Unit - 4 all script are here Javascript.pptx
kushwahanitesh592
 
DIWE - Programming with JavaScript
Rasan Samarasinghe
 
Introduction to Client-Side Javascript
Julie Iskander
 
Lecture1.pdf
SakhilejasonMsibi
 
Javascript
Vishwa Patel
 
Powerpoint about JavaScript presentation
XaiMaeChanelleSopsop
 
Java Script 2nd lec.pdfsssssssssssssssss
ksjawyyy
 
Javascript
Mallikarjuna G D
 
Survelaine murillo ppt
Survelaine Murillo
 
javascriptbasicsPresentationsforDevelopers
Ganesh Bhosale
 
Java Script Basics presentation of program
MarcosLuis32
 
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
PDF
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
PDF
Tableau Tutorial for Data Science | Edureka
Edureka!
 
PDF
Python Programming Tutorial | Edureka
Edureka!
 
PDF
Top 5 PMP Certifications | Edureka
Edureka!
 
PDF
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
PDF
Linux Mint Tutorial | Edureka
Edureka!
 
PDF
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
PDF
Importance of Digital Marketing | Edureka
Edureka!
 
PDF
RPA in 2020 | Edureka
Edureka!
 
PDF
Email Notifications in Jenkins | Edureka
Edureka!
 
PDF
EA Algorithm in Machine Learning | Edureka
Edureka!
 
PDF
Cognitive AI Tutorial | Edureka
Edureka!
 
PDF
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
PDF
Blue Prism Top Interview Questions | Edureka
Edureka!
 
PDF
Big Data on AWS Tutorial | Edureka
Edureka!
 
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
PDF
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
PDF
Introduction to DevOps | Edureka
Edureka!
 
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
Tableau Tutorial for Data Science | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux Mint Tutorial | Edureka
Edureka!
 
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Edureka!
 
Big Data on AWS Tutorial | Edureka
Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Edureka!
 
Ad

Recently uploaded (20)

PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Python basic programing language for automation
DanialHabibi2
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 

JavaScript Tutorial For Beginners | JavaScript Training | JavaScript Programming Tutorial | Edureka

  • 2. Agenda What is JavaScript? Why learn JavaScript? JavaScript Fundamentals
  • 4. What is JavaScript? Web pages more interactive Interpreted language Interpreter Runs on the client’s computer JavaScript is a scripting language that allows you to implement complex things on web pages.
  • 6. What Can JavaScript do? Web application Website Games Smart watches
  • 8. The Big Picture – HTML, CSS & JavaScript HTML CSS JavaScript
  • 9. Top Websites Built Using JavaScript
  • 11. Benefits of JavaScript Provides rich framework Makes web pages more interactive
  • 12. Benefits Of JavaScript No compilation needed Platform Independent
  • 14. Variables Memory location Variable name Variable is a name given to a memory location which acts as a container for storing data. Syntax: 1 let age; 2 age = 22;
  • 15. Constants Constants are fixed values that do not change during execution time. Syntax: 1 2 const mybirthday; mybirthday = ‘03.08.1996’ ; Examples of constants
  • 16. Primitive Data Types Strings Boolean TRUE FALSE Numbers Null Undefined
  • 17. Reference Data Types - Objects An object is a standalone entity, with properties and type. Syntax: 1 let object1 = { }; Name Age Eye-colour
  • 18. Reference Data Types - Arrays 0 1 2 3 4 An array is a data structure that contains a list of elements. These elements are all of the same data type, such as an integer or string. Syntax: 1 2 let arr[ ]; let arr = new Array( ) ;
  • 19. Reference Data Types - Functions A function is a block of organized, reusable code that is used to perform a single, related action. Functions Predefined Functions User Defined Functions Syntax: 1 2 3 function greetings( ) { alert(‘ Hello everyone! ‘); } name of the function enter parameters here
  • 20. Conditional Statements Conditional statement is a set of rules performed if a certain condition is met. It is like an ‘If-Then’ statement. (IF a condition is met, THEN an action is performed) If Statement If code End Start True Condition False Exit Syntax: 1 2 3 if(condition) { statement; }
  • 21. Conditional Statements Conditional statement is a set of rules performed if a certain condition is met. It is like an ‘If-Then’ statement. (IF a condition is met, THEN an action is performed) Else If Statement If code End Start True Condition False Else if code Syntax: 1 2 3 4 5 6 if(condition) { statement a; } else (condition) { statement b; }
  • 22. Loops Loops are used to repeat a specific block until some end condition is met. Loops do whilewhilefor Start Conditional Code Condition False True End loop
  • 23. While Loop While the condition is true, the code within the loop is executed. Start Conditional Code End True False Condition While loop Syntax: 1 2 3 while(condition) { loop code; }
  • 24. Do While Loop This loop will first execute the code, then check the condition and while the condition holds true, execute repeatedly. Start Conditional Code End True False Condition Do while loop Syntax: 1 2 3 4 do { loop code; } while(condition);
  • 25. For Loop Repeatedly executes the loop code while a given condition is TRUE. It tests the condition before executing the loop body. For loop Start Execute Statement (s) End Next item from sequence If no more itemsItem from sequenceSyntax: 1 2 3 for(begin; condition; step) { loop code; }
  • 26. Switch Case The switch statement is used to perform different actions based on different conditions. Syntax: 1 2 3 4 5 6 7 8 9 10 switch(expression) { case 1 : code block 1 break; case 2 : code block 2 break; default : code block 3 } Start Switch expression End Case 1 Case 2 Default Code block 1 break; Code block 2 break; Default statement False False