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

JS Assignment

Java Script assignment

Uploaded by

bokharepratik756
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)
19 views

JS Assignment

Java Script assignment

Uploaded by

bokharepratik756
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/ 8
| Mame: _khurd Akash Santosh | Subject i C85 CTavaSce: jph | Describe ony two feaduces of Javascript. 1! Bf | validating User's Inpul Le _ | -Jovaseript io wery_usefu Jushile using Poems. i ~~ | Tt has the Capobilility to walidole User input _ ses eet eisai ee eee ate a [user leaues.o required field emply_or th eo information i5 incorrect » TavaSerjpt checks Cpe Ph ert before Sending the da: lata ouer to the Servec. 1 * ||Case Sensitive = [to TnoaSeripk Case Sensitivity means thad the — language distinguishes between uepercase And a | lowercase letters in its identifiers, keywords e Function named .and voriables ___2 || Describe Orithmetical and logical operator in _ Tlavahcript _ silineithmetizalogerndar. nee % FOR EDUCAT 24 eabbenadi any Ces icGi be 2 gales ould ; |- Reduro the difference between a and b. —— | MultiplicalionCr) tos bo = Return the product of aandb, As} Division Cy) 1 a/b [Aste the quatient.ofa disided bab. 8. modulus (z)* ub / > Retucn Abe Remainder of adividel by b || Tocrement C+) i Qaton 44 Qo A AnoC&&): a&@&b e Reluens Arut_if both onand bore college. 2.) OR Ch: olb H=Redurng true if either aor b is true. 3. LnerC it |= Reluens the opposite of a. FOR EDUCATIONAL Sher = — a = 31) || Prepare Tavaseript thot are rend an integer — =| Land display whelher ibis Primeor nol. | | Vor a, Flag | jsa 3 Plag +05 ne fa e » whire Ci<= ase) ie Coyieeo) Flag =4i a > break i 4 Ei . je iti 4 ce ifC Flag =e0) a storite C" eria primed} _ FOR EDUCATIONAL USE /Sccips 2 hteoi> SS _ Ast £ 7 c a c ® ____ number between the ran otoo. + | < htm? i | Xocript type= “Lenk /javascript” > Nar nan rems, Sum = 05 Poe Cvoriz |i_ix=too 3 ita ) re) cS whileCi>ro) rem= ile 4o j Sums Sumt Crem*cemarem di ___— iz ipo; _ - 4 — —- — - N= Sum 5 __ _ document.write Cnt get = To define Agetter() get the propecties Value Le Sey - Te dePine aq Setter () Set the properties valus— FOR EDUCATIONAL USE | Methods _ — ee - methods are Functions that are proper Lies ofan abject They can perform actions — Being: the Object’ s pPeopectics- a Petuen this -Pinstname +" te this: lasiname 7 j + | Det operator: _ : ___ | The dot operator C-) is used do Gece $5 _ |_peopecties and methods ofon objects | Cc} | oe - Example: ~ o “FOR EDUCATIONAL USE i let age = 253 | lek infinity = Infinity: | tet mate eon rT | i SAcing See pe eda 2a ee in —— Single 4undte Co) + doubieguntes (1) I Example — _ on @ ict name = “Akash? ao [lek Lemoplaie =‘ Hetlo') r + Bosiean a Tcpeenenig a lngical andiiy_an nd_Can ive only | Aye _walues + Ne aewet oct Polee : Example =» | let isto nggedTnzdeues -let_isovertg = falsej Undefined Indicates theto variable has been declared | but has not_ye re been assigned auatue [tenes ® | This oPten sed to indicate that a variable Should — have no value Exame le — let num = qui » document-ranite Caum) J) aul \ Symbol Sore unique and immutable values that Can be used as abject property eyo. fame le — let _uniquekey = Symbol C' wey’ Ji _ let anotherkey = Symbol (‘key Ji document-conite Cunig “== anotherkey Ji /I Pals, — \uelxs FOR EDUCATIONAL USE

You might also like