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

PPTX
Javascript conditional statements
nobel mujuji
 
PDF
3. Java Script
Jalpesh Vasa
 
ODP
Datatype in JavaScript
Rajat Saxena
 
PPTX
Java script
Prarthan P
 
PPTX
JavaScript
Vidyut Singhania
 
PDF
Javascript essentials
Bedis ElAchèche
 
PPTX
JavaScript New Tutorial Class XI and XII.pptx
rish15r890
 
PDF
Fundamental JavaScript [UTC, March 2014]
Aaron Gustafson
 
Javascript conditional statements
nobel mujuji
 
3. Java Script
Jalpesh Vasa
 
Datatype in JavaScript
Rajat Saxena
 
Java script
Prarthan P
 
JavaScript
Vidyut Singhania
 
Javascript essentials
Bedis ElAchèche
 
JavaScript New Tutorial Class XI and XII.pptx
rish15r890
 
Fundamental JavaScript [UTC, March 2014]
Aaron Gustafson
 

What's hot (20)

PDF
Basics of JavaScript
Bala Narayanan
 
PPT
Introduction to JavaScript (1).ppt
MuhammadRehan856177
 
PDF
Javascript
Vibhor Grover
 
PPT
JavaScript - An Introduction
Manvendra Singh
 
PDF
JavaScript Programming
Sehwan Noh
 
PPT
Introduction to Javascript
Amit Tyagi
 
PDF
JavaScript - Chapter 8 - Objects
WebStackAcademy
 
PPTX
Lab #2: Introduction to Javascript
Walid Ashraf
 
PPTX
Java script
Abhishek Kesharwani
 
PDF
JavaScript - Chapter 7 - Advanced Functions
WebStackAcademy
 
PPT
JavaScript Tutorial
Bui Kiet
 
PPTX
Javascript 101
Shlomi Komemi
 
PPT
JavaScript & Dom Manipulation
Mohammed Arif
 
PPTX
Javascript functions
Alaref Abushaala
 
PPT
Javascript arrays
Hassan Dar
 
PPT
JavaScript: Events Handling
Yuriy Bezgachnyuk
 
PPTX
Javascript
Nagarajan
 
PDF
JavaScript - Chapter 3 - Introduction
WebStackAcademy
 
Basics of JavaScript
Bala Narayanan
 
Introduction to JavaScript (1).ppt
MuhammadRehan856177
 
Javascript
Vibhor Grover
 
JavaScript - An Introduction
Manvendra Singh
 
JavaScript Programming
Sehwan Noh
 
Introduction to Javascript
Amit Tyagi
 
JavaScript - Chapter 8 - Objects
WebStackAcademy
 
Lab #2: Introduction to Javascript
Walid Ashraf
 
Java script
Abhishek Kesharwani
 
JavaScript - Chapter 7 - Advanced Functions
WebStackAcademy
 
JavaScript Tutorial
Bui Kiet
 
Javascript 101
Shlomi Komemi
 
JavaScript & Dom Manipulation
Mohammed Arif
 
Javascript functions
Alaref Abushaala
 
Javascript arrays
Hassan Dar
 
JavaScript: Events Handling
Yuriy Bezgachnyuk
 
Javascript
Nagarajan
 
JavaScript - Chapter 3 - Introduction
WebStackAcademy
 
Ad

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
 
PDF
Javascript basics
shreesenthil
 
PPT
Javascript
Mallikarjuna G D
 
PPTX
Survelaine murillo ppt
Survelaine Murillo
 
PPTX
javascriptbasicsPresentationsforDevelopers
Ganesh Bhosale
 
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 basics
shreesenthil
 
Javascript
Mallikarjuna G D
 
Survelaine murillo ppt
Survelaine Murillo
 
javascriptbasicsPresentationsforDevelopers
Ganesh Bhosale
 
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!
 

Recently uploaded (20)

PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
Google’s NotebookLM Unveils Video Overviews
SOFTTECHHUB
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PPTX
C Programming Basics concept krnppt.pptx
Karan Prajapat
 
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
AbdullahSani29
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PDF
Make GenAI investments go further with the Dell AI Factory - Infographic
Principled Technologies
 
PDF
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
SMACT Works
 
PDF
Test Bank, Solutions for Java How to Program, An Objects-Natural Approach, 12...
famaw19526
 
PDF
REPORT: Heating appliances market in Poland 2024
SPIUG
 
PDF
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
CIFDAQ
 
PDF
DevOps & Developer Experience Summer BBQ
AUGNYC
 
PDF
Chapter 2 Digital Image Fundamentals.pdf
Getnet Tigabie Askale -(GM)
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
AVTRON Technologies LLC
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
Google’s NotebookLM Unveils Video Overviews
SOFTTECHHUB
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
C Programming Basics concept krnppt.pptx
Karan Prajapat
 
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
AbdullahSani29
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
Make GenAI investments go further with the Dell AI Factory - Infographic
Principled Technologies
 
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
SMACT Works
 
Test Bank, Solutions for Java How to Program, An Objects-Natural Approach, 12...
famaw19526
 
REPORT: Heating appliances market in Poland 2024
SPIUG
 
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
CIFDAQ
 
DevOps & Developer Experience Summer BBQ
AUGNYC
 
Chapter 2 Digital Image Fundamentals.pdf
Getnet Tigabie Askale -(GM)
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
AVTRON Technologies LLC
 

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