0% found this document useful (0 votes)
16 views32 pages

JavaScript part 1

Javascript part 1 . All notes of java script part 1 has been given

Uploaded by

samikshadpvn2011
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)
16 views32 pages

JavaScript part 1

Javascript part 1 . All notes of java script part 1 has been given

Uploaded by

samikshadpvn2011
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/ 32
yard . = Z __ Bastes of SavaSaipt. Programing. _ Se lL otient si a lang uag ———————————————— ~— olient side := Ab client side where. js mekes tn inlerackion behoon 04 user, also ser veil eee al — ah dient side. user can make. changed, aaa Sg agua : seg esmall_feice of “the code_/psngram i ine by Nine. Cinteypreter. * ane Cts) he. javascx lh age_which @ecarbes the, ee ese -valicection_prrpose. and eee TS sax Hing SP Fe. ii i fase,, validation tlolion af 8 4 Centered input) uy le ecg aid : 4, t's_low. pod atage ONE 0. “i ance pf dda pes. S) 7's pa sp case. sen ‘Hive, languad © 9) Eres)_stelemen! to JS must ends toil: — = 2, 8) is opensource &cress_flattorm. _senp! ile Js is_a taster language Cheoz af light Meightexd Ay ioe uppoxts all the Letlues_ aft Prcedu Lt ap En usge Q.No.\ ** | What S_actually + —> Ayped_, faster - PoP [ot opel igaed aad ypported and , op et_source,_attd_exmss__ | platform seaipting lang Roe pixpase dt cltent side. : imbesactive web: “° oe a ep a ane Tie cl baa exeaite -sequlternent | ait sid —2llhere inthe ach. apn bases. — to the seqver fox fulft_his —— «|The eqrler_tha tespands.o the elf by ennsideving- ts — The_ meaning. | and _sexver: client _who xequest: to the sexier he client___| rk side_is one, tn which a a rem Aisle one tensor it ate Bal, — meee peg Lal we. ita ee =) | Qu y |e cleat having“ aon C5) Patil ject based sensitive. Sewpting. || sTntesactive bet” . client side | [client & sewer seaipting language. . || Penvide dynamte. tat-) Is Populax dynamic. comp- exactivity on website Focluses : ater Progeamming feng... | | satexpseted \ | veldatiog weer’s [O I Crto_comeilation ingut Light_eighked f Vir fectuses | Suppoxted . pistn_tncep il Coten sve. & cas plifem ) I client side sexipling. language :~ ay a STavasenpt i ae i i id cnt de dee a th at Jon website at client side th 5 " y 3 | = 23) Light: = weighted, =! sts lghtweightol because thas shes ___ t's embedded in Wet. sa ibs light wel asses lag =| TS_is object based “sexs langage = N age —_C OBS) ing language. nok a Jeckoniened_scipling Cael anise z= _ohj ect -based meats. wh uses defined ... tke. in IS the. ‘decunentsustte C); ‘ch _obj jecls axe predefined... exe the Lnot. “Aoarment’ isan “predelired ale Tn _js_w : ssdelined objec ox we can't cxeale our cl that, os is an object sed sci. legge —_—_lohjeck oriented :- abject oviented means... those. objects which axe | nsesdefined we can “Tava &_ct+_ane, tha b bjeck q neamples of Objecct ~oxteated fregeamning byt a Loo: y syped Janquage,:- __ S| Ng e ee ext considers ‘the dicta Bloat yz one l-- yar xe = 90 9 ar | yas Y= 20 allow tue by of avid ih yee _z =“ saliva” ; ) vanes, - ink 2 = 90 4 not_allaw. ppustedwe Zr language. is_partielly case, sensitive. _____ as wrong ... use Ge) instend of Ox) Nay 2. = 1D = doament wrtte Cx); ea. Cosme occureel dass suger}, ox.__name. Name. Nine. foe exe = foe conta Lno the: 2 4 ome field input hoe on website ~ fcal_chaxachexs Jor seme. cen | charactoss =. then tt-uill shaw yot anemessegebae J Maplayoxe_tstth soo a | tke: please, enter valid en flease. eles another no. here. if the you_axe. catleriy enme no. fox two field -feceats'n & fesecoal No. eapoctiveh || ee ° 2 so. makes the dynamic ialexaction_sfusoxrand website, 8) ———> Valid ‘ Hype S_vali fae exe += Password 3 tut, also some_pa: ve he like. o-they combain aly 4 digits, and th we ave, tojing toertes sth dit. then it! act possihle . OB« email —> emai) contain k@ nplsoxy . and you are A hexing. “hs enn, ail ids hich doesn't contain flea: esler val mai) Td. there whem ao cuchid is prosat) this paces af check ing the uses inp i&_nihing, uc he — Validation of wsessinpttza) yd plage fab peak mm D| Within 2 nti J %) tn_bath ee “hk =: =» = . sg =" 2! poo type hl Bony _scrrPp. Het Hella Friends" -- _& hed 2 lbedy> dag. —— | Avcimentatmte Thank You |");title. (pm ile ( Setemal | by Exctemal js fle Lh fos Xscxipt language, = wes cpt type = ‘text Jjavascxiek | Iscitel- . ing =“ ay ° uw C alt oS | he] —locumen aside. C"Hellasshaikh's”) ff het ahem gaan — — _ for above. one,: ne HY CondiMonal Clesne y ope: lox wil cl fon /socxementt_op. _X> Bitwi's : i vb tresenentalion, a! seaf 2) Paflbenel 7 u " m Addition). —> Add shia _opexand. =| - —— > _Csthhadion) —> subtract aight frem| op. = |* ——> _Chtuliplfcedfon get pooducl_af_-hao opexacl =|) ——> Covision) — jet tale divislon Guotiad.) S17 ——> (Modulos > =? get semaine ko ole | bhtte a Ts code, to implemen} Arithmele operaions. ——— | vor y = 9 pcument. wate (" Addition =" + Cae ty) 3 document axite, | d _C'subhraction="4 Gev\)3 | ____douumentewatte C'Multiplicadion="4 Ce y i ment.urite C’ Divisions t+ (ey yp peu deat J: ” 9, @ 3 eae er a wT lw Isexgpt Dooly Lia) a etapa An pins ca ais Be la lation _belineen wo operands. ——>_Cless than) > Center than) > =m Os) ==. >| >= (2) ——> Cqxeaterthan ox equal to). al) == — Ceaeactly e9 ols to > >| b= —— Coot equal to’ | pactyee html html chead) | title 7Relational. opexator$ ____________ Ltitle y Jhead bly he Thogleretin. Relatinal Operator: | Lh bid be / bx/; : esxip language, =" javesciet” type, = "text favascsieh” tl Var Pp =4n § | ocunertunite (" peq "+ (peg) )5 i document aati. C" Pg.” Ceog V5 it linaaite. C Pang" (Pony): . documentivite, ( p=4-) tne. Crl=4)[Stored tr | | conditional HE (se another vay. peesion (tie) false) Thexe,_axe. aly tuo texna 4. opexcloss : Pont the 9 Cquertiomark’) teas than ox equal +n aor equal tp —— equals to C doesn! —— _ be exeaclly equal to C check forthe data type) 2= —— Not equals to his eopaxisan ofeseclina of too opexands. y ="+ Coery))5 ctue. | document wate. CY sess) ="4 Ce==1)); J false document wite C pe= "+ Gez==y) i false — document write Ce !sy ="4+Cel=y)): fe clocumentyurite (i ve=y'="+ Gers) twe Jeep: | [body J “Dil 7. — _ : =Vy | Losteal opexators - — Cee aye Iola the lye ke ~ pmgen 5 a + | > Clagical_ or) Hamel ea = ys i —> 2 ~) false \ D| Nogiced and ¢ Rb) e | “Fut tuble ——> A “2 res, False + False © oO QD — File Tue=1 False 4 tue __D i O ~> false false=o “Ere + Fal \ ° Oo —>fale | ies fue. 1 1 — the | 2 \ogical or (1) | tFone atthe ts te. then {twill velivas hue stherwlse cfalse: ox i} can he same-fox hath as hue Tauth table. _———»> ¥y Res » - both false — 0 ° oO — False ; falsetiue =o 1 | > te Tue + false ~ | ° tty Tse Tue =| 1 pL hb 3) Lagleal_Not (1 ) that means HE the answer fs fe, then fill eke A — 4s talse._& vice versa ~Tarth table Pp @ ee, false 0. |__- > Te spue. falseMuNow \ddle. a G5 code Av tmpement “the loyieal opendonss . | Il Cpe=q) 3 false. c/scai 7 — (and) wes dd (add ‘eselhecia iy e |. — Cox —> ess] 6) wow —-> (ot) —— _e=ve (negating) ol A — > (yx) —— _olol “ova! _— loos _¢, 2 | (dt shift) ——> otol_Caigt if) ——> oto tr? 100 colo o SUIOSS | Wile. a Ts code ta _tmplement Matsa apexalors, 2 L document.write C aig if ="+¥Crees>o2 )+ kb i ! xiptDIA igomedl_opexctox c= ——> Assignment: opevatlore allows‘ assiging. the yalves fo the vavable _{nx-opescind by calculaling the deka oo pueasioAS ae —> igns_xightoperanch val_to left S45 > cact2 het=2 | ——> sums up and then assign to left o| == ——> 4= 9-4. a-24 | —~> cubtyack and asst eo) Re ——> ba bts bees uly ign to left tile ——» dad/s .. d/=s_ ——> vide an assign to left s) A= —— > f. f dbo Fu-t0 —— jdt the modilus & assiqntole t| A= —~» ge gta gA=2 .——> “qeb exponential & assign dole! tows Mite. 0 Ts cle dn scecthernosking, of an Assignmertt dperectmes ——_ javascript” > 1 Vax | = os I var m =" Sadiyq" 3 ‘ax kk =| 3 I Aocument. write Ce > 5document awrite Ck) + eL5 document.write Ck); documentaante Cl) 5 Jocumentt. write Con) $— KES documentswaite Ch)’ kfe] 3 document. wate Ck) % | kel docmentawrte, (Kk) 5 C+ta)d: —> first inaement thea y. fost-incvenent —> Cat+ ? —> first use & ‘then inaement — Hite x eae te nplenert the leamect epaolar: _— \ DootyPE htmstro head. I ‘i | Tnerement operetbar H Hite det type = "Lect [Javascript " > | Mer p= 20 5 Va + = 100 3 | decumenbauarite CPre-inccement” + CetP))3 docymentaamte_C' fre-increment "+ C+ 4)"# "
") 7 document,urxite, “fast fnevement"+-(Ptt )+"
) 5 drcumentiate C fast=increment + tt Jt"'
) 5Pop-Up hbaees: — TS support: “types. of popup y alert OQ; ——?_ Th work's _asinarning conta () + Takes as. 2 qe Prompt; ——> “take. an inp’ Porous | dlest Oo; / do unfadowrealert Cs Please. Note. thet :- submit befre exit. ok confirm C5 = Qo yousant tn continue... [ok l | cance} ft) | Pon O: ! ———————— Enter your name. lestna $ixst name middle name...) Earn wane Calos orbit () ——— | Document html Sam heal title; Conficn pop-up hare les hody cxipt type =“ tee!- /tavaserieh " —_| = Co 2 ‘ documents unite (* clicked?) + ves )+ | ! Peompt_O2s 1 Par ‘ten head tii Promh popup base [Hite ~ iy sting fiy Numbers Lit) Rootes 0 Wy LW) Undefined! . | sbing = ———6._shiing- is an anay of chexaclers - —— —— | var a_= " sadiya" | Numbexs 2 TE an_he. integer oi Heat oumbers Cink (fiat) —_ lo $ Nar | Nat n dn lo. L ii)’ Beslean = Bonlean d data type has only | oa values, hue or false yard = tue ; var. = false, D *“document satte Co) Stull print ‘undefined value > Uetein Tt wun joint garhag alue.. it vill flach the mess ao value, j % Tn_as the data type: wok pebbles one ~——__| data _lypes_tike abject &anay.. any primitive dada ypa fiom the above list and can use, Won Peni | Non= psimilite. daly lypes ip, object iy, , aixay | jejtulae pies usar cycle gate ed Acbeon (3 | cule brackets with eprated by comms a | keys velue. [nan vale. pale ——>|_var_tible = § height 2 sno, widlhe 200 + foo | bieck key valu hoy _velu | Vor person = 3 fname. + "sadiya" +—Mname, + “Anwar” \name:"shailch", fallno: go § 5_ ae} Th _object bey svelte pairs axe sepecled by comma | : hinpestica ala objec! i= t's nothing bitte calleckan of data values. ST pope, can bea vaislle lads -member), methods it _ a _aLhtml> _ i | | i I

You might also like