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
Javascript 101
Shlomi Komemi
 
PPT
Introduction to Javascript
Amit Tyagi
 
PDF
Basics of JavaScript
Bala Narayanan
 
PPT
JavaScript & Dom Manipulation
Mohammed Arif
 
PPTX
Java script
Abhishek Kesharwani
 
PPT
Java Script ppt
Priya Goyal
 
PDF
JavaScript Programming
Sehwan Noh
 
PDF
TypeScript - An Introduction
NexThoughts Technologies
 
PPTX
Javascript
Nagarajan
 
PPT
Introduction to JavaScript
Andres Baravalle
 
PPT
JavaScript - An Introduction
Manvendra Singh
 
PPSX
Javascript variables and datatypes
Varun C M
 
PPT
JavaScript Tutorial
Bui Kiet
 
PPTX
ASP.NET Core MVC + Web API with Overview
Shahed Chowdhuri
 
PDF
Javascript
Vibhor Grover
 
PPTX
Angularjs PPT
Amit Baghel
 
PDF
JavaScript - Chapter 5 - Operators
WebStackAcademy
 
PDF
Lets make a better react form
Yao Nien Chung
 
PDF
TypeScript Introduction
Dmitry Sheiko
 
PDF
Bootstrap
Jadson Santos
 
Javascript 101
Shlomi Komemi
 
Introduction to Javascript
Amit Tyagi
 
Basics of JavaScript
Bala Narayanan
 
JavaScript & Dom Manipulation
Mohammed Arif
 
Java script
Abhishek Kesharwani
 
Java Script ppt
Priya Goyal
 
JavaScript Programming
Sehwan Noh
 
TypeScript - An Introduction
NexThoughts Technologies
 
Javascript
Nagarajan
 
Introduction to JavaScript
Andres Baravalle
 
JavaScript - An Introduction
Manvendra Singh
 
Javascript variables and datatypes
Varun C M
 
JavaScript Tutorial
Bui Kiet
 
ASP.NET Core MVC + Web API with Overview
Shahed Chowdhuri
 
Javascript
Vibhor Grover
 
Angularjs PPT
Amit Baghel
 
JavaScript - Chapter 5 - Operators
WebStackAcademy
 
Lets make a better react form
Yao Nien Chung
 
TypeScript Introduction
Dmitry Sheiko
 
Bootstrap
Jadson Santos
 

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
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 

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