0% found this document useful (0 votes)
5 views22 pages

Operators

The document outlines various data types in programming, including numbers, strings, booleans, and null values. It also discusses operators for arithmetic and logical operations, providing examples of how they function. Additionally, it covers variable assignment and the concept of undefined variables.

Uploaded by

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

Operators

The document outlines various data types in programming, including numbers, strings, booleans, and null values. It also discusses operators for arithmetic and logical operations, providing examples of how they function. Additionally, it covers variable assignment and the concept of undefined variables.

Uploaded by

rethik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Batatypes

1) Numbers 35 10568

,
>
- 8 -10 0
, , , ,

a)
1 I 1(

world
Strings
>
- hello
-
Y text
-
-

3) Boolean s Hus

false ,
roll
per

4) null value I variable


nul
represents
-
they
no or no . .

e ,

is declared I
defined also but wel an
empty valu

i . e. well
-
-

s) it has been deland


undefined
- shows a variable who

but
defend
.

never
...
new

name
bucket

* e
null
-
-

y
I

let user
;
R

t
-
-

mis
e -
-
6)
fight
In yo (as
per my
latest
infor a normal number can
E

s wre manimum (9-D) and minimum


(a
-
-1)

for numbers
beyond this
range ,
we
veigt
&
To make a no .

Bigint ,
we write the number

append a n
all
ast

let x
3125068999999888n
=
;
-
u
i
-

-
- -

insta X linked
for

3
let
fle -

let insta =
-

:
#value

E fb :
3000,

I"Insta:
-

10000
-- I

1
2

(
X : 15000

Symbol)
- -
1 &

linkedIn : 7000

d
3
Suip)
-

⑭"
"Y -
programming lang
do
using
we can
computations .

>
-

Operators
>

Operators are
symbols that can do some computation
or calculation
.
(1
+ ,
= =

=,
*

-
-
Ens #
M
used adds
plus if
this 2
operate with numbers

them
-
erator
If-
j -

·
- -

> operand
-
-
Arithmetic und with
nums
# Operators
>
-

-
-

2 + 3 >
- add 2 and 3

2- 3 Subtract
>
-
& and 3

multiply
>
-
2 * 3 2 and 3

2 / 2 >
- divides & wel 3 , gives
module

you the
quotient
-

>
- -

divisions
2 i
%03 >
-
remainder of of
2 & 3
3
**
2 ,
2
>
-
calculate 2
-
-
&let a Glo
#assiament operates
: ;
Lin
value Vanable.
help
these no W
assign
us a
-
-

&
let
yuals
= >
- -> x = 10 ;

let 22 = 10
;

want he add 5 to & shore the result


you a

in 2
-
-
fir
let u = 10
;
&
lo 15

y
H

let x + 5;
y
=

x
y;
=

-
second
&
way
--
let a 10
105
;
=

sh
x
=
x + 5
;

Id
-
-
3
let
way

u5-
x = 10

;
;
2.
Stua
-
n 2

3
-
=
x -

2 x - =

*
x =
x53 >
- x
=
3
assign
x =
x/5 -
x) = 5
ofexato
=

n =
a
% 3 >
-
a 90 =
3

**
x x 5
xxP 5
=
> =
>
-
only those users who e

I And
are
registered on
netflix ,

And
2) those who have
paid fer subscription
operates
logical-
- > Comp
Logical
AND OR NOT

&G 11 !

>
-
operands of
a
logual operator are
always
boolean donot booken then
If pass
. we

automatically
h boolean
IS convert them :

-
-
AND

R &
y
false false -
false
false Tra -
false
true fale -

false
Wus
>
-

true true
Oz

I Il
y
falsa false as
falsa
t ru
false > Lous

true fahr > has

-
true true Wu
-
Not

x > ! N

Was
false
false Hul

You might also like