0% found this document useful (0 votes)
1 views3 pages

Javascript Is A Scripting Language

Javascript is a client-side scripting language invented by Brendan Eich in 1995, with a file extension of .js. It supports three types of variables (var, let, const) and various data types, operators, and loops. The document also discusses functions and the Document Object Model (DOM) for web page representation.

Uploaded by

shubhhamm27
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views3 pages

Javascript Is A Scripting Language

Javascript is a client-side scripting language invented by Brendan Eich in 1995, with a file extension of .js. It supports three types of variables (var, let, const) and various data types, operators, and loops. The document also discusses functions and the Document Object Model (DOM) for web page representation.

Uploaded by

shubhhamm27
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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

You might also like