JavaScript Slides
JavaScript Slides
JavaScripts Statement
JavaScripts Statement
Key concepts of the web JavaScript
Practice : Let’s write some JavaScript code with all the operators and
display them however you like.
Key concepts of the web JavaScript
Re-declaring a variable using the let keyword can solve this problem.
Re-declaring a variable inside a block will not redeclare the variable outside
the block:
Key concepts of the web JavaScript
JavaScripts Arithmetic
Key concepts of the web JavaScript
JavaScripts Functions
JavaScripts Functions
JavaScripts Functions
Example :
Key concepts of the web JavaScript
JavaScripts Functions
Syntax :
Key concepts of the web JavaScript
JavaScripts Functions
Key concepts of the web JavaScript
JavaScripts Functions
Functions Used as Variable Values
Key concepts of the web JavaScript
JavaScripts Objects
In real life, objects are things like: houses, cars, people, animals, or any
other subjects.
Here is a car object example:
Key concepts of the web JavaScript
JavaScripts Objects
Initialize an object
Key concepts of the web JavaScript
JavaScripts Objects
JavaScripts Objects
JavaScripts Objects
JavaScripts Objects
JavaScripts Objects
JavaScripts Objects
Object Methods
JavaScripts Objects
Deleting properties
JavaScripts Objects
Nested Objects
Key concepts of the web JavaScript
JavaScripts Objects
Display objects
JavaScripts Objects
Object Constructors
Key concepts of the web JavaScript
JavaScripts Objects
Object Constructors Default Values
Key concepts of the web JavaScript
JavaScripts Objects
JavaScript Built-in Constructors
Key concepts of the web JavaScript
JavaScripts Objects
JavaScript Built-in Constructors
Key concepts of the web JavaScript
JavaScripts Events
An HTML event can be something the browser does, or something a user does.
HTML allows event handler attributes, with JavaScript code, to be added to HTML
elements.
Key concepts of the web JavaScript
JavaScripts Events
Key concepts of the web JavaScript
JavaScripts Events
Key concepts of the web JavaScript
JavaScripts Events
JavaScripts Promises
A promise represents a value that is unknown now and that can be known in the future.
● When you request Yassir, the driver makes a promise to pick you up. When you are waiting
for him, the ride is pending.
● When the driver at some point in the future resolves to picks you up, the ride is fulfilled.
● If not the ride is rejected.
JavaScripts Promises
A promise represents a value that is unknown now and that can be known in the future.
● When you request Yassir, the driver makes a promise to pick you up. When you are waiting
for him, the ride is pending.
● When the driver at some point in the future resolves to picks you up, the ride is fulfilled.
● If not the ride is rejected.
JavaScripts Promises
A promise represents a value that is unknown now and that can be known in the future.
● When you request Yassir, the driver makes a promise to pick you up. When you are waiting
for him, the ride is pending.
● When the driver at some point in the future resolves to picks you up, the ride is fulfilled.
● If not the ride is rejected.
JavaScripts Promises
A promise represents a value that is unknown now and that can be known in the future.
● When you request Yassir, the driver makes a promise to pick you up. When you are waiting
for him, the ride is pending.
● When the driver at some point in the future resolves to picks you up, the ride is fulfilled.
● If not the ride is rejected.
JavaScripts Promises
A promise represents a value that is unknown now and that can be known in the future.
● When you request Yassir, the driver makes a promise to pick you up. When you are waiting
for him, the ride is pending.
● When the driver at some point in the future resolves to picks you up, the ride is fulfilled.
● If not the ride is rejected.
JavaScripts Promises
A promise represents a value that is unknown now and that can be known in the future.
● When you request Yassir, the driver makes a promise to pick you up. When you are waiting
for him, the ride is pending.
● When the driver at some point in the future resolves to picks you up, the ride is fulfilled.
● If not the ride is rejected.
Encode URL
Key concepts of the web JavaScript
How to customize Submit Function to get data from Forms To Send them :
Key concepts of the web JavaScript