fundion vahid ate Foy mL) $ Var firsthame = .q("firstname’)-value , Var lastname =d qU'tastnam’). value, Vor address = dq (“address")- value, 4 email = Cemal") 0; mobile = U'mobile”). «5 girder: U'qinder’) value , Password = U'passtwoid”) + 5 ® finstnameEra0y = — (firstname Evaus"); vale eS. y - lastnamePraoy = (lastnamet7a01 Dj ( Form Vobidaben 3 i addressErany = address E7203 J Using HTML) (35 q | Z © emailErxo% = email Evo!) 5 — TAVA Step be mobile Exo - CmabileEas0s 9} RG: o 2 QenderEsy = (aunder Error’); ‘ “Sa @ PassuypydEavor = (password Ex907) 5 MReset erroy messages wy oe a e OUTPUT: r 5 = Registration Form (Can |... Fiost Name I Pahorm validation XE (fastname ==="") 3 . , | last Name © = “Fist name is Yequived 5 [ Yous last name--- Teluan alse ; 3 Address 1} CLastname ===" ") , [ Msame os eae} 3 § mobile , gender Password 3 "a i Wiumber alee Registration sucessbull" ; qeousn true j 2 Gender : CIscript > : [up sal ot Password gordo chum\> Lowe passwd = pA OC ER F ARRAYS Devlaration oh arrays : <'00CTYPE himt> #tconst cars - [“saab’, “Volvo”, ‘&mw"y; M4 d-4 (“demo”) inner HTML = cars § t seripit> < const cars=C1, #2 C cars [01 = “Saab”; cors{4J = “Volvo; coys[yJ = “BMW's ; = dq ("demo'”). innerHTML = cats 3 i Const cars = new Array (saab, "Volvo, “emw"); (1a dq Udemo"): mney HtML = cars; i vid-snil Uaccessing Elements in an’ array: Raa 4-4 Udemo"). inner atom = carsto}; Howkput= Saab el pine dg (dumo"). inner me = Cars} Houkput ~ Saab, Volvos BMW ee ae Oe aay ith Set. d-4('demo") Inner HTML = CAYS; — Houtpuks Oped, VoWwoyamws Z)scripe> aaluiibalis: - alo > > peyeeat 5. we — < bowie Array Methods : zp id > demo 4” Zp id= “demo Compr > : ee Const fruits = ["Banana , “Orange , ‘Apple’, Mango |, Let size = fouits. Lonath dg (demo) innernitme =si2e5 floutpuk = 4 MWry7ay to String ; 44 Udemo" )einner tm =hauils toString 19} Noukput = Banana, Orange, Appley Mango "To joint) the Shing : 4-4 (“dumo"- innertitin = fruits:join (" #"); Houtput = Bananat Orange Apple * Mango misting Innes HTML = bouts 5 2 Houkpuk = Mango demo4"): inner Htme = houilss output ~ 8,018 !IPopping and d-4(fumo"'). fruits. pop > dg (% 4g (“demo”): innesurme = fruits 5 - fruits push kiwi"; dq Cdemo4) inner Htme = fruits) Moukput = B, 0, A: kiwi ASHSEO : removes hiss element fruits: shitty j loukpul = Banana 4-4 (demos). inner HTML = }ouits , Moutput = 0;A;M Hunshith c) . adds elements4o the beginning bruits. UnshibtC Lemon”); Houlpue- aq (demo4D inert = tauits,; 111810 81m delete ddete fruitstoy; 4-4C'demoa"). innes HTML = frwilsfod ; Hloutpwt = Undatined: furts Soxb (7 5 d-a(“demod")-innerttme = foutts 5 Mowkp ut - A,Bimo / ép Verse (7 . fousls-reverse U) , | O floutput: 0,m,B, AO bruits (fruits length j=" kiwi’ dsq (“dumot').‘nnes Htme - \ruits, Houtpul = B10) Ay My Kiwi Il Concatl) : Merge aT OUYS const fliris= [“Praseeda‘, "Pranathi"] , const boys = Ray", "Ravi" ; const ab = winls- cencat(boys); d-4 C'demo"D- inner HTML = ab 5 Howeput = Prasecda ,Pranathi, Raj, Ravi const animals = ['Dogs", Nats"); const abe = Ginls: concak (boys ; animals) ; d:q Udemo") «inner Tmt = abe ; loukpuk = gras: boys animals spicing and Slicing Arrays ; Splice : adds new item slice s slices ouk @ Piece Noo} dale fruits. splice (2,0; "Lemon" “Waiwit) : 2 inex “I climant 40 ‘be added A CdemolT-innes mL — bouts; Aran outs, .B) 0? Lemen, Kiwi, Ay m “APH (0, 2,29) » oubpub=a I Slice - enact sye “postion Slice (startin dex, endindex) ov SliceCstast, Lastindex - 4) frutts seu) ruts: slice (ap Starts rom a & and 3130.40)50 goes Hu fas lEunchens tn abject Const person = 2 firstname z STohn’» lastname #''Doe"» ld 2 5566) fullname : functioni)3 Yeturn this-firstname +" "4 this laskName ; 3 (owner of the function) 33 Person - hisstname EVENTS @ ondickO) Output: [Fk Hire | - [Sun Tunas 2 The time 187) =) \Sun Jun 25 2023 Cbody> = 2 raiaeeee| cha>---- c/ha> Cbutton enclick = "this: inner HImL = Datel)'> The Hime is? zlbuttons | ® ondbelick 0. Dowdle cice Zsenipt > function moe Output : 4-9" ht" )-inney HTML =dakal); % Cale Lisevipt > ee < body > - Cbutton ondbuiick @ mi) 5 >Uickz {buttons fh4 id=hi> Hatelhi> 6) OnimouseovetL) & onmouseoUe O : Cs pt> funcdion m0 4 Hite Output © A style herght ="300 Oa-sty le width ='300%s 4 initiod |] 20 ommmawserat Punction mac2 $ 3s ; On: 2305 pnmovseover +} | [pee ‘ ) = “30%, ZIseaipt> havc BQO s PS et SP erres er arent oe TO eee ) Z body > ”
® onload () Mtmb> le 7 na Sonioadie q twit funckon wea [ae Uisplay hha alot" hhhh')) 3 7 img sre =." huight="300" width 2200" . < body donload =“m4n"> ‘ < Ibedus i © one {) hin thre vs an error in Loading - Same above code but seplaw onload with oneror- | © enseleckt) ] Zhimt> eubput : funtion m407 alirt ("should not possidle to select); 3