ASSIGNMENT-2. \aigHav Horzay
x 0241400202,
Tad. - sm)
Quast. What in the fusbose of the this, Roysord in Tasaserifte 2
Exblain its covitinct cand haus it takenes differnt im sordnas
Bcomasiinss (q5- in. ondis shnd, onde AIS fumclions) Dideuse.
;
Utkin ie used pubside jack (in
ee ata ee 3
taste] fs Soe fos) oj,
7 Need» Pia] salu te the [alebal| obj,
ON A Sis) In Bh Gs alt the window ape
(2) Obj! Method. Cent :~
Fs a es Bh patna a
Const essen =f
Niro) 1 is? fi dea laa gm
3;
person -grsal () 5 1] Output +“ Vpibhas””fe Ha, oh fi) pa) is [a]
+ Se nen shiict ite glu. Supe te feel bj (Sada
[aiel
«tr. staick mode. [Bhi] wis be [undifna
finction Shousthmed) {,
Conse Leg (this); I) dn nen- shi modes this sefors tthe gfeball
ys : Object (usindeut 6% global)
BhowNomeO) 5
dr. a. Conttiucter Puncion (using, tha [ru] hayword), Bucs) sare ds She
Yous instance Bf the Sbhect being, Kaadlid..
fumdion fosrere(narne) £
This. name = vane 5
}
Const user = nor Coton (\\Vaibhas”) 5
Contste. fog (usti..wome); || Outbut > “ Vaibhas 2?
Hosea [his] im the constiuclor sealers So the nous [Berson insane.
—
whacky she nna aa jinstoad.
=Bt ain Se la og
Const fanton = ¢
a: ae,
Sth : Gk
Const adseefane = ©) =) Consade, Sea (
(Hs,
yO Ho bilby» y ca ke
Pat
a Huck);
~
iis,
te this cumfl5a ansanfcin nade Pal
tho [gucE] function, oko eo ce lt
(S) [Bis] in Gent Handle :—
a oe Soa > Lihin] sufurss Tithe HTML eDeraart thad Steeised
=, =, a
Bee nie.
Fem ashen a Bap
“fast: al HS naga :
+ pay: fails Foul, wit, 0. sik [Ree] all
provided oh an ArtoPbind) : Ratinns 1. vas Famchim, with bound,
function grt) f
Combate. tog. (Halle, $ {this nome}?) ;
$
Const uber = {nome : Ciba” 45
Spcck Col (user); |] Ouch: : “Hole, \lnibhas >?
mpc. abby (user) 5 1) Qutfut + “Helle \|oibhaus”?
CSE beundGouit = qruit. Vind {users
bamndéract() ; [1Oukbut : “Helle \|aibhas
Haw cach sf those Fichmiquee, fale manage sasynchiensus Cocle ,
Fb. Ptmnchuenous frogtomming Jin ToinSoipt ollmte cede te
usdhaut blecking, sthar Bforations 5 making it idaal foe tandling dake .
nibh secquosts , file T]0, & finde. Tamsorlt famdlet, osynchuereas,
Tasks vith callbacks , focem us ed (ae a
@) Gitbacks : A funchien fasted AY an. sdgtunont Se amisthor fuchion
Kalbed flor am. sabe bperalien. Combldlis. Housesen, Callbacks am
Sad te “catback jul” duo te rested shuts.
Fumchien fetehData. (calilknck) £
SatTimosut(L) >
Gllback ( Data. Doobed??) 5
4, 1000) ;
ewe > conselh. fay (deta)) 5 1) Out: + Dab onda —Raprasoit the esertal Comblation (or file) af ay
Pi. allssing Chaining wth [9] and FR
Sladabbity..
Sek Reid Dele = nour bremise (Csuste » supe) =p 7
Aatlimanct (() =) Saselse ("Dats Sandel), 1000);
Ds
Add Dita thon. (data => console. toy (data) 5 |] Outct: Dela Lendod.
Abc function fetchDala() ¢
Sok dita = await pos themise(sasebse =) sabinanut: CO =) fatale
Conable. Aey(dete); 10H : Vita Minded “Dele Andel”) 409),
f
feld Data 0;
pn indo
fac hn i edi ale
funclionsy 5 cbjecte . A values nescled, a
Types 9¢_ Ghent :—Made
She Const add = (a,b) => atb;
Oot Const subtract = (a,b) =a-b;
NW rma. je,
Import fad, sublvact § from ‘treat je? ;
Conse ey (add (2,3))% 1) Outta: 5
CO) Defautt Epert + Ghot a Single bei vu uma ll
Onby ent defaudt expert is, allowed bor fete
/1 utile. je
SHpert fut fimcion
Sutin. “Hel, 4 spract (name) f
Nawnah | ? ;
f
[raion . fe,
Amp gpsct foc “ Iytigg,
rete Ne (put “Vibbas >);
Practical Questions ;—
Gund. Gate a inher web affication that pe
tae TSO ach od lishlaye, the a :
{ APL a As}namica bly qonteale.
elomand te Ahly he 4 a a a
ws
M1 Ochut: : Hele, \qi '
ZAL> fasts. 2/417
SME Be = Bat. 6 > seri bt
4|bely>
2 [Rim >
Sasnsoift (soift. jp) i-
I] Fetch. data. fiom TSonblaccheldes ond. display it
Pekeh CAs I jen flachtde cyficede. cane] posts)
Shin (sssperte =) suspense . jam (0)
>! a
Const boatlist = document qcbelomoritBytD (‘past disb?)s
‘ data. fet fack (past => f :
i Const Siskthm = decumbil. Cavateelomunt (‘Li ?)5
List towe Lotontont = ‘$ {pout tite};
poate. off (isto;
§)5
yh (eso => Censsle. oxrar (° Gaon Fecheg file:?, onat)5
Ce ent ee eeeho
Guus? ite a Tansexpt fandion Hak use
fo alld te Sta pce Hf ts jn A olin
Alin i She cast Shaul. te am Dbjtct ith frsfaitie nama
Price. rellomtnt dtr findiion om demonic, it stage sythy
Sample shobbing, carb abcray?
Br. II Funelien Je coloulati titel frice
Fomor, callalatTete duis (cand) f
g “ltr a. Sade Sl tm)
// ane
tt
{Name : Siloh + itm. baiee se