Date
Jaa Scnpt Page No.
+Tw padta
Memevy r Vawalde faivmwwst
a) Code
JS a Synchrouetw Siyda -Threadd Aanguag
Tue Eceutho Contet ia lcreated in 2pbae
9) Meuoy Creath y Phane
- for vay iasheA, At stor noeted
- for
21 Coda Ewecuton Phae
henr a JSpograu Ywrs, Global Eeutan Contet
io Crate
ui o l e , a nes meetam cote
s cnaed (Parametera the fenctin are also ae
Ca
wndejind
stace wantains tae orclr e Exetm
Ewautan Contua
Programm Stacu Cant tack, Kunti Stace & Machine
State
Date
Page No.
Nok: JS hao & olata
Bigint
S) Numbr (dousle: 64- bit oatiyg poiut)
6)oLt
wher
au olowbli Story weubesm 64 aito
te
khe ra ction is strd iw bito 0 to Sl,ay 63
S lgu bit
to 6 2avounot
( ytonutn bit
Whad hap2ema cs
Tue van able hecus floba vanable
hcthmSauare(xF
var b= t i
Yeru b
Spe hoc a local
M:2 b:4
2: 2
b: 4
shuthat
Date
Page No.
fp Script Coadig Stratp
)Putsept ) leMent at the bot am q the bo dy
src ="Scyript /s cleter <scipt
instruc% byows to feteadoum load Scnpryn a sepaYate
hrtad uhile nat Cue DoM, t is doumoa
3) (script src- "senp js' aayme) <sciptt>
not oded
olu
Due acmpta are oouloaded, tuy statexeucting
uhch aloce the
Covtet
Ud n w hane a bneh oachgoud scipta to
Scrpts Ca
Cam te m Docs ot
Page No
uncy tHTMt A Luey Teut
iynr HTMLVo
DOM.
allo e to read' aud upolat cotut
lenent HTMc
laney HTML
-Yeade both the HTML Maveup
he cotut
nutd Soureu aY er vadati Contt as
attacesx Cau nn
Conet
t
par crc="abc
paragrapla iaer HTML2
29tutttontnF ime Teut
-rads renoered ttut couteut (asit
- dou not vad idam tut
(wl t
line spa bveade Awlaikk sp)
Date
Page No.
3 tmt oteut
aolsteut as it te
rcada iololen ttut
and conteut )
ylistAunrHML
-hntey 3
itmi<li <uttn 2<(
ayit tut Contt
)itut <lih<iatul<li<iDten2<L
Ceutiy
didarn mioy to the
ita sap ltor a l it s olilarcd.
y-Ddavation Mastig bg alale to Yurenc avanabla au its
Dats
Page No.
a) Th dedarathio Hae vamabe Caw
bihonnr
4)TaeArde autx a didar atm
huton ewaliatig the eat the code that bnta
Contaias
Note
ba wth themvar t d cnet).
En nchgo wnth var cay not be called btore
dedayati ao Évror)
oOuy fuachm
dudagthe tumctia.
caussi. Loga; ndned (not a)2)
var =S;
lox), 5
Date
Page No
Conaolu
Ep-oy
Whewer a
Sane VaabMao
cae atacki Thenfoa wL can ha
Ep-os
hat o creat eol
Windos sojeet
hare teveapneiloity to c
to Create teiy
Ler, s tis == window,
fabal
Var x= S HaoL apae
att achd to t
1
Date
Page No.
t b omt ar
wot
t x S
amsole lo (x); /s
Vav wa = 0;
snsole.
Ep-o6
Unditied- (adutriter that to be a
TLadicoates abeuce aval
4 w duclare a vanabl thut
vau_ JS asss ita value as wndeuedYoy
- Whntnctms oo't hae tum, lat are called tovatuo
aja a vanik
Cyura)
daain.
Date
Page No.
veturu
et obi=f
MameJa
Vay
Ep-07
uuca EuiMmnt -
wwuerr an Executn Cout ut s cYNatcd, adeial
oy mnt alo created.
luical uimet to pareat
Scap
cuYreut Conttut
Scops
hicyane
btwt vrsa,
Date
Page No
Globad scope- The datault Sope fox alA
Scnpt mode
Module sSope- The scope fr Cocla uMing in
Vavtase oedared cuti d
CYated
Block Seop: Vavale udard wnthia atnchM
ntht cot
butong to blod scope Creaea untt a
pair cuty byacea.
fp-og
t cowt ducayatisa are hskd but ty
ducayahoy Atatuut
iitialed Som Va.
duelaratm ko't top
Date
Page No
VaY declarathi ave att ached to te globa p laut
l t A conet de hot.
daYatou are hot. Thsyoe alocated
awste. loy ("helo),
ut a [0;
bti ddared
Go t a = S;
Vay Q= (0;
VaY b S;
var b= (0; I/ No or
Emy Missigg iutialies
Comt aj Synoues
Couat ou elaYe
to c t a n t
a (O; Vanab
const a =[
otretaeot
wot ren a
ushras
Date
Page No.
Ep-o3
A Block is a At atmut
byacca.
We ne bloch ko enck medtpti t atsuts
ave ducdare
Ave blochs
Coet ae bloc-scoped
coped but vav ducavatna
global sLspeo
Suasou.
Vaviakla Shag
chad
This meas that ay rerences ko vanable tthin
Vay a= S
"sbodaig
var a=(0;
Shadag
et a S
t a a (0y
Consse
sthaoteg
- Var Statemut
Sopol r Vamas
const decl cayatins ve
Page No.
Const a 10;
CASmsle
Shadou
Vav a = S ,
VaY a a
llto Shadoui
coso
vals
ut a S7
01
Cowt a s
Cont a= l0;
Shadoi
shool hee S a Van'ab
JDate
Page No
tt
t a= |0;
Shesaunig
Var a=
Cot a = [0;
Sledsig
Gosot
t a = S
Var a 2 |0; etspuyal sheaounig
I SyutauEro Tduthr a'
Las already been dhelae
t a= S
Genat Cot a= (0;
Cost a Sz
-gho bal scoco
Vay a z 0
couede Lo(a,
Scoje Yus av Sane toy fnchn dd darata
toy tnchn
pate
Page Nol
Scwpt supd
Vay a |0;
Vav a S
Jt a (0; fuuchis sap
S
tt
vara 2 (0; fuuctm suped
cesda lo(a);
Coese oy (a)
wt
Sempt susp
cas og(a);
Saue th
JDate
Page No
fp-t0
Acloue s t e co beinatin a tuchn bunded
state)
VaY 2 2 &NO;
z
Whenstrcimo tuned on auoterhunc
renewber w t y wre
Patrn
Dky atsYs
Srue tuuctiany has aceey fo th va'au fuchs
Date
Page No.
y,*ovD);
3,t(ODO);
3
2 Ater 2s
3
cosoa
Date
Page No.
Ep-12
tanchi guter C6) (6
Loneol
(a,b),
3
ouker helloword
VaY C= 20;
cousol
3
ut a (0;
retum autor;
et a 09,
Coentc C) 1
2
Yturn nctin fucveutut Counte c
Cot tt Deuostt
3
Vay coter coutw )
fuetia
Spate
Page No
Counte 2
fenatrctor twnct are sed to cYeate
Anchim Couter C)E
Var Count z D
Gott C o ttt
coleoe dog Ccount
tis. oleremnt Cont C) =funct Of
Cotlucremlut Coter
l;
outal ncmut oter
coutl: decneut Cotey;
Disadua as the louee
doum uY applaletoa aud
pate
Page No.
nti ac
VaY = 0;
var y
rtum tunctioy b )
Aeiio
3
VaY
Afuneotaent Y a fuucthm Dedaraton coeate
a
bindag a wuw functinn to a
dudanahin Tu main ditarnc betarceu tnctu
Catk o yw
uvsteed Functim
tucti
sut-insl
tuctin
)O;
tnetian
Date
Page No.
(aayuc ()
tuncti
) );
Another otreue betcen fuutim diavahan L teachin
hw t y ae honteol. kuncthin duar athon
Can be Called beh be
tey ae dedand but
an iukalied
be it Var, let a Cenet Fchi dufed is
var
the iutaliatii
Canot call tthem laufo
Mad tunctm
VaY a
Coedelos Ca
/ a caled
as valy
P are
Date
Page No
js Aad to hae
ar
acins t r vaY'ale: Anckn cat paseed
bertun
an argumeut to ofher uctia,can
as avaw
A a vanase
fuuctho are aded Hivzt las Cteey.
pesad to authe
Calstae is aso euun as mented . t s h e
olowt
Not
Cont Budto Cides
donut
(" d "
ttownt
hnctM Cout ButtmClCleyC)t
3
Cout Buttn Chc()
Ep-I5
Web PI
1.Stace
+ DOM APIs
localsoy
Cal bade Qeuo
cabate
ctn
mirotaale 4eee
to runkuuy cal bacee We can allow tird party
to we nucdtae.
Mutation ObaYvy wathee made n th DoM
do tYee
n Calbede han
Star vatiM tor a tost
the microtades
Coutie
sigle hrtad Lap
ana checking kh wmicitasua e , Caub
Cattba
Oudy aayuchysuous wrcb fLa ike DoM, uteh
suttuotC), hae calbacka
Lare eet henc ueuted wmataty
Tue
u can 4 Eveut liatuua, the onginal call backs
k
Lnaide a bvser, serv Smartwata
Jowwa,Sipt Rwte Eiyomment
APTS,
Date
Page Nol
Exey bvowser lhas a Jana Soniet Runtte Einst
No d js ha ita aum Jawaseni RuntiEuimut:
Nodejs aud bosr lootth hare Some ommon webApTA
ke coole, Aut Tiueout ) ttu but hae dit iupleuketiss
Nodes docen 't hae loce sto
Mozia fireyo -Spade Mankuy
JS
Code ’ Pasg Complotion
Paaig
- Coc s boteu don to tows
Parr cout the Co de to AST CHostyact
oyilaton
Pragramig
-Just in Tine Conalatina
duig cuLut aprogra (at mt) ather the
buto cution
Contt
Qunly 2a tae code bugcutd aunad Ldauti hia pota
that
Cooe.
tEeutoy
Eeutcd
Colt ws to
M Heap Gatbog