Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

NAME I

D
YAREDWOLDE 01618
For
mall
anguageAndAut
omat
aTheor
yAssi
gnment

Ti
tl
e=Jav
ascr
ipt

 SUMMARY

 Jav
ascr
ip=I
t'
soneoft
hemostpopul
arPr
ogr
ammi
ng
l
anguageont
hePl
anet
.

 Javascr
iptcode=li
vesi
nsidetheHTMLdocumentand
needtobeenclosedby<scri
pt> and</
scr
ipt
>

 datatype=ref
erstot
hetypeofval
ueaprogr
amm canwor
k
with,
whichcanholdabunchofdef
fer
entdat
aty
pe
-Number,st
ri
ng,ar
ray
.

 Vari
abl
e=isabreez,
justassi
gnt oi
tanyot
herdat
aty
pe
val
ueli
kenum =sum random st
ri
ng.

 Art
himet
icoper
ati
on=pret
ty per
for
m ar
thi
met
icf
unct
ion
onnumber(bot
hli
ter
alv
ari
abl
e)

 Stri
ngOperator=t
imet
oint
roducet
hemostusef
ulloper
ator
forstr
ing.
..
.

 Logi
calOperat
or=alsoknownasbooleanoper
ator,
eval
uat
e
anexpressi
onandretunt
rueorf
alse.
 Javascr
iptfunct
ion=isbl
ockofcodedesi
gnedtoperf
orma
par
ticul
artask,i
sexecut
edwhen"somethi
ng"i
nvokes,orcal
l
s
i
t.

 Functi
onparamet
er=ar
e t
henamesl
ist
edi
nthe f
unct
ion
deff
ini
ti
on,

 Jav
ascri
ptobj
ect=var
iabl
earecont
ainerf
ordat
aval
ues,
obj
ectar
evari
ablet
obuttheycan contai
nmanyval
ues.

 Met
thod=ar
efunct
iont
hatsr
est
oredasobj
ectpr
opr
eti
es.

 Ar
ray=st
oremul
ti
plev
aal
uei
nasi
ngl
evar
iabl
e

 Mat
hobject=al
lowy outoper
for
m mat
hemat
ical
taskand
i
ncl
udesever
alpropert
ies

 DOM =oft hatpagewhi


chisanobjector
ient
edmodelofi
ts
l
ogicalst
ructur
ethedom ofanHTMLdocumntcanbe
reper
esentedasananestedsetofboxes.

 ECMAScri
pt=isascr i
pti
ngl
anguagespeci
fi
cat
ioncr
eat
edt
o
st
andar
dizeJavascr
ipt.

 promi
se=isabetterwayforasy
nchr
onouspr
ogramming
whencomparedtothe commonwayofusingsetTi
meout(
)
ty
peofMethod.

You might also like