0% found this document useful (0 votes)
31 views

js

js-file

Uploaded by

Alka Kumari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
31 views

js

js-file

Uploaded by

Alka Kumari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 26
a HL - oa ye = “QauaSenip} — 1s ™ fa. O ‘rita : progrennig eS —— ae. : on : ariel ob} ek One ag —_ Ais] Gite buviely objects based | | ate ht ute teen &_eslen —pisishi Hive — | dota ty ber _tixee number 8 2 fhing ome pies 7 everything is__Object iy _—_ —_—__—— _ “Ww: My is ypomicoilay — pena lace Stoned _‘In* _memor mes Chee ed ~ ot Huntine— Ie this w! ton ony typ 2 eee Value in Vostibl w:| dS is null posradige= pegeomng - bs bnocedune Oriented > "Ohiect Oniented [= S Bhjeet Boast lady: ve | bs i int pire d !or0 ceoge. ; Ni OS fe ynch nondus 4 \ a —Single thie aded —Quehit ecfeme—— —___ _ © Cxecuted ne by ine ) 7 yu : | J Ny Dy Date _ {p Floken Smal\est unit of pxtog nari "9 re amt Ahene one 5 Aypes of token &= Keyroaxds “Tdenti Hens 04D Is Literals - Pane tuadoss. _ oe & Key yuieids fA key words ome __prie= defined word — haben ie Lue to. > pesonee — Some _Specife —toske — fee gasonds ae tn Hen in ‘Inwe ¢dee x$=- i}, else fon thie» funtion be te. - — a Oden Hea t- Gere Outer ive memes — | +p Vascible: juntinnt 8 Clive abet | enti fn co On_nol _@-howt wit —uyabens Ddemt pea mame should) _ol__be a reywwoned Gf i i i 7 L identi fren ic of multi fle tone! , instead of | tisuny twee howe Feo Undeseong >| jokahihin Nome Should not how. thee tal Charon bul Can Stent wrth C-) Unoler sea’ 9 (Et dello 7 @ Ope sterors. t-_Gpenatoss One poreok fined Symbales — | —“Whien is (afi fon “ams gpaton. ands $= ands. Que A ffesent of : oe to pte 22 In foo be ee co o « fe . | Ghee ame 2 types yo operiotons S— @™ a Apenatah tc t= Ea 4 ___* Decne prent —o _# Logic -2feston— = ee 6 — M@) Tay _ Opesatat = Arthe ma! soto _Aceiqnrent sxaton _ Compound Opeator —_@ een Ofesnton — s Mj _____—_—§ @g Ur 0 eR Logica a Meson ofenadars = Cond anal ferater Gh te ment | dex se ment Ohestote $1 2 — leh @-1) AP PPP LP PP PD Page No, . oO: Tee = _ ES - >. . | > ay Ler = = = ‘ O- 4: : . 7 > ‘ aan ee == s les taal . as ; -(4+0 + = ; “ ~ to 4 nen : = 2 “tl tba Seibre 83 = ge : | b 2 0 : 2 let_o= - ; a = et O= ree o 2 — an : 2 let b ae = 3 ; iia ue i) : z " a a fog (& = —__i_ ; og (alo — _ ; i (oh ® D — : A a = 1 - | Pe O+t; = 5 “Ott sy _ = Te be are po a | : a Gath) ( pai peae LOU ~ fhe Shia Numbes | | Stnrie Epuallty:- (=- 7) | — | | a0 — 1 jeden Stni “hum i 0 Loose Not Lquolity #- (f=) TS ee 3 \ ~ y \ > » » » * » » o > a > 2 > > ® | "to" 1 [Sy J ; Sing Aluint, YP Pp ye }ot 7 Date __/__y E ie 2201) => O Clog (3 424) =) 4 Clog (4 && 1) =) Clog (0 880) oO { fois Oo" Gon pi sing —__ £uue t= 1:2. 3 -\)-2,-3 wii" "abe O-1, 0:2, 0-3 .- = & Caged - OP) | Rex Ot : ra q d+ fe sz Pe $e ee +) Condition al Oferrators ‘- [ i false - ‘ a) Oheriandt I : Openand 2 Operrana >, Le bye -| “spe of pasimitive Vitals %- =| Thene Ate 8 pea_% = cane =2)__pimitive clato— tybes _is_a_ Goto tybe thee _ |__S1ebreseak Single Vodka. = 3S theats pesmitive \ i | Vole , means thot Phere Voluo com not be Chonges) — 1 WO COCEC CIS ISVS SSS SG ILL) Numbe S | 2. \ __b > 2) Boolean £ Symbal a is go %)) Noll *- Ti nepresotr nul on embty V a =) | G1 is ee to masik the Mrematiy —bl | | ern intention oly, - _ —— - det oral) a2 TT >— > * Onde fined te Me presents tnintiadsed value __ | odhen @ memory black is Cmintiadi ged _, oS | Chgine— implicitly intiodige hod memory. bloc cif] Unole fined — In Vosii ble pho.se. ft nn ae Vox will \ntioliae Unde fined in Vomtible phase. e Let -& Cork _Will_hol _Intiollize in_vP __ = . - ___ eg let 0.5 Q: 5a = Nos 02 Lice ___ x NAN &- Gy Stands toss Not a Numbers. -? Gi Hebe sent —compuctasiondl e310 Ex%-" Hello" +1 = Heliod : " Hello” - 7 =» Non 2 ¥ |_ Styin g- 74 Hiebresents Collection od Choror ters» iE = 2] Gene ome tuo try hea —o| Stings in Ts _L: | Single line Stuing = & Su maths Line Stony ae $ Ean) ingle [ine &toin Single Tine Stang a= oe (i) Multiline String Gi is enclosed by bl Ceetss Gaath C:Q8- Cones full Nome te ” Rohit Shore”; Const Uses =" Ninad _Kolalj 5 __ Date backticks C+ \; ee @ allows line bweoks & hide Spacer, a is also Caled tenaplode— Styin — Template —_Strio allows —Us__to inset Vosubler % expression dviect sings Las In $4 © 8 f Vosubble— tame -*—tnodetiom Cg t —Consi_Usen.2 " Vinod Kohli” Const hn. = NB Cog (® ployer t Bf Oven § : “oy Jen Namba 2 Fano} ” | (nis __mee haniem is ofa. called inter: bolatia Pw ee eee Non bwimitiveLiterrods %- + hie presents pou “Vole “lon primitive Values O54 —midoble Valles, | means thod thein Valo Con hb changed. (Dhen _twe _ 1 Neu) _Object_te not _Csteaded — . ‘4h Date —_ /__ /— _ te “Scopes ge letines Ye _visibi i ity ss — Orccenaiii lity Of a Vonible. _ —s — - 5) Ghee one tuo eps of Serf i= = e ___L | Global Scope. ti = My} Load Scope. ee gs — — y - . Giles S- a Voi ble cle cloxed om Dee 2 ge ar Who. _— a >| Gilobol Se oaenbilily —— ~ > Nonible declased Joes i a Scobe —— ' & \ Local Lobe *= Ly. GB lock Scape = i wot LLY function Gope. = C-94- Now 0» 1; & {eft hb = py & Const C= 3° = 3 & - . > 105 & let b = go, < | Consi_¢ = 305 s _ C4 c aside O Scope jp - | _ & (ayy - Ch) 3 oe | aA | | | ) I hh hehhah hhhhat Se Gaathi) Cla C’ Outside the Seope " Jy — i (a); _ cd Cbh)e ¢ ing ce Vi Heap Memory a ‘>. a a > | Global Seabee _\ ~ a+ [Elio {| Sp - on ES ai > : - > | Sestibl Scope L 8 ock SGohe > a 2 bt E a “y c: {3 ; a — 2 — [Block Sope ef o — + 5 ; Te o i ere : 7 Ly delete ! _ 5 _ofp fo an QO Scope , 20 . 3D _ , / 7 [a es > — pure ehh > 7 2 - _ »— Ss (aa) Date 7 Fane ton Scope. — Nou O= 4; a “ function. —gpieet (yf o - $$ mie let b= 20, = —_-—___® Consi_C_= 30% +» - Clog Coy) —— _ Clog Ch) i ‘Clog Cc \% 8 Clog (a); } “6 Heob Memory Chto St FOO { Gureed C function $cobe ) DAMIR A Aare Peaaaaecre _ _| O.4 110 (TP? coltecd ~ ff bee] = re | c3 | 3e IX - ZA SO _ oo 3? Pageno.(___] Date _ / 1, Cilobad @xecution Coudtor &- (hea we _ Give Te Code to +he _browsen, Te I Cngine Will Qllocade C Greate) oO. lool memati block — Fen the _€xeection of “Jig Coll * nec. ae a “dS Code sins in tio flaases = — a \bnible Phase = Bxecuti howe 2- Engine tsill check tne comblete Code | it coil conch +o Votible detlhetian | Sto te ment ak Qt Vosible is declosed toi vos. tail_be —| intiod ged Sk @® bxec g- Wy \ e linetme-Hon Line by ine Hoisting a- Whe abil KE | Gem blw _\orible declesation | in this ime frome Wwe con not Otters — em : fiunetion is__Object in ds aa A function is a bloc 0} ine tuetion a Which 1§__Ued 40 _perefarirn 0. __Specife —— - tog -— oa care eS - | —— ene a re function ots Crecite_ then it te coed =. (he__main oduoninge of function te __we Co Ochive Cod Hewsi bility . | Noms of — fonction ic vonible which holds ¢ _o| function Object 3— Cowe $1- function memes U1 £ arererrereeveed | Choo C" Sormjh_tuade_bo S55 Clog nett * olditoahase_hoto 5 Tid - = lef X= meme )) | a Volusia? ix Jp 7 + daldi_wohe ge_h “WCone=25= function mest { pullAlome cil” Af ist ng i} | SIC CCe [Cose-&%-(Defoult porameien | function memes? ( fullName = "sen" ) i 0: log 4 {full Nowe J, Doows ke _roahel_] 1 hai fo __ | memes c VY eS - ——— || memes2(" Chine") 5 Cont fon (Bogen) | fenetion. a EE Cloa( « Clad (thes I ya ptt j dialog (” Koson” © Bian” ys function _befone _ftanc Hon — F || Cohen eye log function nome the entine function ~ dfnation,— punted WOW OIE VON SSE UY Tre us 7 Seche. within fuxtion block Is Known 4 focal Scope. _ Page No. r a ti wo . — —_« 01 CIhot ie Hoisting ?_ ______________™ teh es — Ara Oflising c a ae before declsotion_ £ _# nae Coded Os —peleting _« ae ‘the Coeinision * = 4 connut— —_ - Clote inte Onothen— fis illow2 Cs __ ty byt COCK On ———EE ir - = _— Like of type Coencinn ¢~ Gey Lt : —- te = ; DY Draplist Fy an _i= Gp converd 2 = gaat tn ye Be Ciagine 2 0 EGE Cae a a= /o; & lef A: "5 ") _ = Clog (aQ- fd ery e Pum Sting = & COL Ecblicih. type aaa faze One & | ints Gnothen et “Aly io cgne ~ ke Finown Qs lick _ . Hlene le Use Some functions au} humben ©) 4+ /bieTat C) ~ Stina ¢ . 28 = - as aol c 7 Soe — 8 1} Oatex_7__,, se \ Gaathi) Cg- lel A+ 104 Cont Sin Bning (Q) 4 Clog coins Mo" & Ww a Qj i= Cond 0 "0 y Cont numval = Numbel a), Cond — Numval = fe 4 Ory Osen 4 ae ~ Const J1esponse_ = prong ‘Enka a string’) Cont Oserlome« pronpt a Enten yous name" J: It (typeO! (ce sName) = = "ct ing" £8 Usenslame 122" "" £8 E S ahaa aaa DRAMA AAAAA Ad batihlne engin <6 )f a ee Jy, Jj ee lef es ity — Const a > = Symbol Hii” Ji Hii” Clg (peat Cpe a jj ee ———Synatal, ——__ ooo C — _ en Ea UsesNome ) 4 — ' Cat - —tonction ‘pee (frome, age) { : = — (EC bcO} nome => 2"Stning" &&fnome 122" "gn uy the lengin €=16 ) f 74 eoeee tees : Clog { * Users A{foame$ logged ing | _= r cif a $ Como C’ Frvolid- Useennme "J |i Ctypeo} fog 7) nue robe" Be Dye lg ——— of £60) ee : —s*. +S tt ila < else : 7 [ a —— oO C Gude Age” Vy ~ Te | gnect Timi ae ooanee a ES Cucoting O. fantHon uaing hunchan Krqond Steppowks BS hate "4 a ‘ Kegon - => Ges fone We c i ae i ‘on call a function betone feincHon dlec ation — — - K a - a , . _>» (Ohen in Cc are) og -fndien none _ Hhe ents, fancte defination pointed. = Gy, Cope _Corthin fun tion block is _knowo 4 loca0 ficop = A bosom ton of fom fon twill bas loca scope. = Josible cositlen inside function Ven using Var hove Inco Scoh: 7 : : j : : ) S| Un dg thie 1 2 proper of cuca eaten ; twill how tae hey wor xcept U ) ) ) : ) = : function Oe | fachon] 4 of function * ; function declsiation gto temeat xptression | first Class function 2) Jaen “lunction Ou 4. & ae a Ame ely A Pook fun ton a Td tious fen 3 Date ;__y__ QC) iovsin Dekoin eaten = —- function Coleeator C) ( = : = | Cog. Vettow Would” 7} 5 - - —Lateataoy Ch, = ek Puncton— os _Exbreaion ¢ + Vow gues . faction (1 f | 4 sce iC) y —@) Cmmeciaity Pruaked function t= let sex; (function 7 4 = — Set fimenut (ory f waedeeeccc Nes = _Confinm (" 229 tunot 40 show ya a Date. Const Hesponse. « = (fans 1 5 oo Console: lo ag OTP 1s geanoting” \y / Netunn 19 S466" __1\ ( = : : Cog, (Mesponse )* { - rSCF _[-———_ 19 sus6 ofp O1P Ls gemeting — = led “Count = 0: ee Setunn (function C) f Hetumn Cort ++ 4 ) SVQ Odd () Odd () odd Clog (count) Odd Odd () => Count4 +=) 7 ‘ol’ [Count =o} function () ] =) 4-> Ie zy { Qdd() => Count ## =)3 Ee pietune: cla 94 Clooladd)i// 3 L$ y vase] J * Date /__/, he = Aborto. femction 4° Whe rain function of Jegi- let x = Cobminte) => 4 QV108. funchon ice to Heduce the function Syntax. 7 _—— —— OM is Mise ded we E46 $ €-Os- Comet _guieed = _(UseuNome) => § 4 Clog (* Grood Monning* \ (a: of C4 fuccnmoames* ) j an SEG ke Nec: oy +p tue posiomthesis fos posome te, peop pagaanaa7992393aaaa C:9:- (ons! _gueet = Username = t CA 4 5 i D | NY ; Sanction hove single Statement» beret Cculy braces 5. ds Obtion a0. - [8G ge = Gen Eek ng ek ‘ ee Page No. [~ UIP io sass0004 , Gaathi) _|| Const geiNome = d=) —t Cond Name prompll”’ Erle your nome Jy NHetvum nome 4 Const getPoct =()=> _ Const desg = prompr C" batn your Desiey nation oh j netunn ed: F C onst get Age =C)=> fe _ s_ Cons es + tO" Entes youn A i uy; es + ag propos ouin Foy ee 4 re _ ie Const getPin_= 2 (re Me, - “ue Con in « SHettirn pio, — [5 = . 2 Consl_getRin : l ae a rane =" (om! | fideo ae : ge. fin y= f Cc fullNom - - a Cin gation posts y Cr Age" 1 Omeye c eC City” , pin) z a _ a eet ge Nome | patint 1 Beto wi a4# Date _/__ eT oh hess “Onde unction *- One “function - | okie accepts _arviathen fonction Los a parame tr Whe fune tian Which metunn fuunetion is dluo“fnowwn Oo highhea onder function. Cg: oe pei ase _Usen) a | - 1 execpt feign in __$« Gensiie( $0.4 $, Sid Vy Call back fea tion Cgs- funetion Qensic C_ toad rf = (fone i +) - 5 lef %= Qennic C)! ROO FOL _ 4 Told TTT yey yes ee CSCC ESE CCE | | 2 2. » _ ate —/—/ | } #| Calback function *- {he funetion Which ts bourd to another function (05 Qn onpument:).. CG: Jancheo gentic (tosk , wenNome ) f — tok (UserName ) cee | gem (eon) 5, [aaliys” Qaeaaanaae Lhe lele

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy