0% found this document useful (0 votes)
4 views24 pages

JS Notes 2

Uploaded by

shashwatb342
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)
4 views24 pages

JS Notes 2

Uploaded by

shashwatb342
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/ 24

Page No

0her OpriuizatMa

i cacag

lonotelog (" Stat");

lt staDat ws Datec).
lt udDate start Dak

C" Stast Stast

cosote Los ("Calbace Caubede


3, 0;

A as a

Const Yadi

vtunu Math PIYadhus tradu)


pate
Page No.

Cot diameter = nthon Cradhus)


returh 2*Y cdi

do caldeklradans, area));
cosotelo Ccaluda Cradin, circmnterau)
smo

K conslL
CYadie

wc cod ha ala (rittn calul ate

Cot
Data
Page No,
Ep- 19
map inotance that CYeat a

wtny elunut ia te callng a a


ttt cach
aYr map tancthin4
caubac acti

filtro aa daglr order fnlhiu pret in Anrey


givea array, iterd dourn to just th euut frout
Aaat
pondeod unet bu.
avri[l2, 3, 4, S,6,1,s, ,
arr 2> arrl. iltr ((x)’ 2= 2 0);
arrll]2 20;
/ , 20, 3, 4, S 4,7,3,5

nau:"Ta*

tnam: Jom

arrI Co). ay 23j


23 y]
fnamJshá"

tnae"Job
Date
Page No.

redduce C) a hi
that e e t t a
a Yaer-Suppud"reducur callbac ttin

dte acwa al nta Vale.

Cwet outpt= arr.redce Ctun chiy (acc, urr)


acc 2 acct CurY
return ace/

Coetnrs
tiatNa :"Jai Laot Naui "Gupta
Johi,dasta:'ui
Mudt, LastName:Iain

1/23:2,24-|,
25(3
a' nthAushed
ututy
ocauk).
ekeaer
Selactor(tr).
Cudl addad 4uuydout.
3loq Cone
ao Kandler%
ame feut
tass tothat wile et ko
Page
oatNo
o
Date
6 Page No.

Log= do Cument: qumy Seichsy (". went


doamt qhay Stector (taR"). oda eventistene (dik',

hr add Eueutistner ("looded, C)>

Ciushed with stat: f uhr. statn

Loq. teutloutut flg teut Couteut3 Starked


3):
doumek. aueny Sltoy ( #ylaad"). odd£wtlatae
kntcotn= ,
dsmw -ocatoyreloadC);

Cattta

to wdratad

Con e a t
Cas c t t
Date
Page No
S2 - EPOI
Aue t heudler is a
Acall back ig just a functhioM tad's passed
aaother huctinn th the luptatian Ahat tue
Call bac ill be called at ttae appemict twe.
Calhacke sed to be the main
tuncti
When hae to cal call baces insde cal bacee
sih uado to deuply ted callback t e code
becomes wnch harder to cad k dabug. Tuie is caled
doom
begs to qrow hsnzontally utead ticaly

code whei wt po them as caubacbs

comt rta " teul


cart teultu2'teus;

api. shosOter

3);

Austw ompe
cal back Cordu etala)
Curder Details, cauback) E
Ordua Dutadle -wod
Poyent -="walet"
Causack (ordn Deta);
porns
We
statea: opurctio
3 aayuchvonos
A
02 Ep S2
3);
(adu tntion Dekaila, (ordu Sunay Orsu shos
b)f TaPaeutOroerDeailar
(order uchian poued
tule)e OrdurCororetaile, creat
y;Dtile
f= rder Const
Detale, (order Conaole
o,
Detailaupdaealablet
Galamc Srer
oyolDtalaJ; ualltBaanee wpdote tncho
derDutaila) (ar back Cal
lbae)t lGD; Aod SYdrDtaila.
total
Detais, Cordur Smmay Orow show functim
No. Page
calbae Paga No

areattachig 4 calbade fnchinM do a promige

as Readab Streamy
wh e convrtto JsoN to etact k.
Promisea obyecta are imwutasle, hobody Con mtat

CYeate Ovder CodDetail )


kuea (tncton (ordrtale)
(crder Dutaai
J)

Ctuactian (ordrDetei)f
vim up date WaltBalanc (ordeetai):
3);

tea Cordn Detil) ’proed To Papuut CordrDta


YdDtaib)
Date
Page No

const
coneole.

Ytapomarmae thencCreo)
Const oata Roms
data Prewuise. tthn (ldata)

Du t i enameu, w add a .ten


honde to te rio

honiztaugsoO.tgain
h

But Since hu C)

Cot ttu(aiTHUR AP);

4)
Cdata);

hae
Pags 1o
So2 ep-a3 reatip
Eanstpaaaac
coust pm

Conat mike vead Ovdr Ccat

pracdaltenchix Cordta)

lProducer
fuuctinn creatOrds Ccat)t

4
Coyt orderTd a|2345

Catnl) tunctoa Cat


Spate
Page No.

Du mmaise claGihingshater

onet cYcate Oroley C) 5

Yoohe (" 1234s;

CveateOrderc)
L234S
Coeoe og Cordlo)
Ythaa podToP a t

3)

3)

kae agnch fucta bos ducueded. Jhen a


C) fuuctim
Stu do
eynot prose anotaer ssled
to uce oise
utn wt
vahi.tatunet
But
or42
uth jo it stld betoAard prie
io A
Called
wheatoaed, has
No. Page
Date
7Date
Page No.

-Whe wt cal
nol Yehn apoise (Psoise A).

tu CPrmi 6).
- t A asome that at som

callo &econd th that ValL and rture


tue prom'se stond qvea it (Pruise . That reet

Pmisc Btolows Proise cl olota a what it doa

Code neodues Pyomise B to t, o Promise Brmci


edoiectd),a butits adoo yesoed
Can what to

Attes,PuKe BAnnU sett e itsey the sae

ulile cYany
Const
Date
Page No.

iterasa

wslhen a

Vale an

3s 26

Cvall, val 2, Vd3J


Kueu

Prosuiseau CUpl 2

30

t hot wat hor plsrp3 tah but HPL oUa


dono Caucee d

Pros-auolta
Proe.al has
Date
Page No.
Promise. all Sethd ) Atatie wwetuod toss an stealle
Ainpt Yetrne a sige oisc Aoa wthi

passed is Cuapty

Poisk. au Stted (Cpl,p2 p33)


26

Lval, val2, val


Premse. al suttud (Lpl, p2 p )
30

Yetuy
Yd
pasaed is
rase raaCepl, p2, p3)
Prsnise
34 26
Page No.
Pronseace (Lpl, p2,p )
30 20

Prmuse. yacec) s

passed
6
ped
Plomnay Cplpp)
2%

Preise
28
)Date
Page No.

AosesaCpl, pp)
24

cast pl mes Poixe ((veaotre, rjLt)

Conot p3= nus Pruise Crcoatu,rjet)¬

CCpl, p2 p ) tan(Cre)
Date
apncaait Page Nol
alsag returu apous
uthe retuua
wl can
Gh value

wed to handle peiss


tor

resor (" Proise Vale


3, 1600D);

tData (O
(" Namat Is")

NameIs
Prouise Value (Ater lOs)

rose("promis Vae");

Gonat t a u t p
Csst aat
Date
Page No.

oyeA Deta 20;

Nanaste TS

veodu (" Bromue Value;

At Tiueoutc ’
yysue ("Prouse Valu2 ;

cot vasa aat pl;

Cont Vali auat p2 Output


("Namate Is2 Hello
Pvo Vaue!
Cos Naete Ts
Nauote TST
Lemscvatu
Datal
Date
Page No
Whenrr we cal

Te aoat Jey wor


Call stace
pose atr auat kyuord ian't sthd.
eteulvetuma a

Conset

We
otheunse
promse
prowise
Date
Page No.

obieet

Coo ndeted
Lude afacthiM, te vde

be vehaced wath
non- stact aodu. this subttuti
thia

ts Vale dplda

indo-eO
Dato
Page No
hncho
it isa metod
pat doetythen
const oti

piutNae: fnctioy C)e

skudeutl. pu tNaue C)
cost studut=

Studut l. piutName , callCstudut );

NaJai
)Date
bindi Page No.
Ayow
t hs vae
Cont

o (thia):

Conat cbË=t
a (0,

(kia

ta

this in HDOM has te val he HTM e l u .

LoLiet HTML ButtoaEmnt]

You might also like