1. Javascript is a scripting language .
2. Scripting language is of two types.
3. Whenever there is a interaction between a client , user and a page then
it is called client side.
4. Server side :- whenever someone is filling there details this data will be
stored in a server it is called server side.
5. JAVASCRIPT is a client side.
6. PHP is a server side.
7. Javascript is invented by BRENDAN EACH in 1995.
8. Extension of Javascript file is .js
9. Javascript is case sensitive.
10. We can write javascript code in head as well as in body section.
11. It is embedded means we can use html code inside it.
12. Java script contain three types of variables.
Var:>this is the oldest way to declare variables in javascript
> this means a variable declared with var inside a function is only
accessible within that function but if
> var allows re-decleration and re-assignment
let
>let is a [Link] means
>let only allows Re-assignment but not Re-declaration
const
>neither we can ReAssign nor Redeclare
DATA TYPES
Primitive
>NUMBER
>STRING
>NON DEFINED
Non-Primitive
OPERATORS:-OPERATOR IS A SYMBOL THAT IS USED TO
PERFORM operations according to user requirements
There are 5 types of operators
Arithmetic operators:- +,-,/,++,--,etc
Assignment operatos:- =,+=,-=,/=,etc
Comparison operators:-
Bitwise
Sdgdgdfgd
Loops in Javascript
There are 5 types of loops in the javascript.
1. For Loop:-
2. While Loop
3. Do-while Loop
FUNCTIONS:- IT IS A REUSABLE BLOCK OF CODE THAT CAN BE USED TO
PERFORM SPECIFIC FUNTIONS
They are executed when they are called.
FUNCTION SYNTAX
Function functionName()
Statement
functionName()
DOCUMENT OBJECT MODEL:-THE HTML DOM
IS A STRUCTURED REPRESENTATION OF A WEBPAGE
To use DOM
HTM
L
HEA BOD
D Y
TITL
DIV
E
There are five ways to access the
content of dom