0 ratings 0% found this document useful (0 votes) 13 views 5 pages Java Script
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
Go to previous items Go to next items
Save JavaScript For Later “Tava Sev ioe
wat # a oe lanquage of web
4 te Us ,
et e -to celeate duc intewachtue web
faq?
Ci bee I
wy dato con be validated, caliulated oy dlatacan
be sani puleded . throrigh Touascrip, we can
chang “ihe Content of ists and style of Ces
te is) ees qc? leaya
ex:
cheml>
Zhody> ered
en abl pt oy Feast Wauasextpe ether
Zutton P type = “puttoa" on dick =
W locumnent » qet clement ey Dol Ccemo') «inner uk
=date ("> ,
clade Me -to display date anal ime +
Z| button >
zp id= demo > 2lp>
Zloody>
ethem> /
Yo wiew output we
tal (2d name) Funct or
——
[click ene. to igploy dots fe"
sun bec
st) >
=f 12024 + pees! 32 Gate 0830 éTua script car change Abibicte Values y
le ‘Taua stripe changes “Mealue o¢
Dn this ex ampl
att? bute of an elong> “bg:
arc (sore)
ex: | bulb onlore
z button>
“dotument.get Element ayia’ Cy image) +940.
ght 2[button,
on click=
‘ptee bulhong?é" > Turn on ti
Zfong id = "my Image" ave =" pic— bulb off - gif”
aust yle euptdth :100Px">
on cli cle = "document ¥
e+ clement: 24 2b ("ry eg
qu
Zbutton
(sane 2) pic_pullooF lates p TUR CFF (gre
z)button> : :
olp-
:
4eeeL ie w ¥
fruze_o0 she Nant ya of the Want pat
ova Sodpe Syston!
yy Now *° create variables:
vot *}
ete YG
nyow to use wartables :
4253
Yr os
fee ZENGCASAS.
KTS SYNtax —tw cefrrer duoc Values;
+ wayiahle Values
+ FXxeal valees
tized values ae Called literals
x variable values oe Catled — vartanbe
ce i
ZS C¥IPE >
xeS5
Nre5
ZaKAW .
document. get element @yld (demo) stoner HTM Ls!
thevalue of zis" 4z 5
zfec rfpt
Operatoy s+
v osfithemattc opevatoys (+ - ¥ 7) 40 Compute values
G46) KO
. =) 4o assign vanables
a asiqnrnent operaion C=) fo aatign ve
ens let xT
xeS3 (gu
ve
Tova ocwtpt var? ables:
\ Automat cally
a& using Jar
B+ ustng lee
Yo ustag Consthu sing Mar : NY
wax x=
F
|
|
|
i vor Y=
\
|
var 2 = tty
Busing let
let © ©S
lear y= gy
let ze ay
3: const
cons, «25
"Wodek Yegroort” ys
Const 2=xtyy
Toua sevfpt Can disply i 4 ways
beinner nim)
cas douumnent «wo ite ()
3 windowd
ys console toy O
cdoeument+ wooitle
2 scetpt >
document woyrtes x6);
2}script >
ianex HA
ehay ray Myst web pag elha>
| ep> my ARSE Paragraph
_rutton 7 TYPE= “button” on clies “document: watt
(ste)"aary TE <[butionswradow + ale at
ZS? pt >
wredow-alet (546); [alert Crts);
zZ|scx tpe
» |
console ey “To excoude ?
Z8CViPt> ‘| ' 4
“pre Faso on lp
Console: log (sts P7 12. on your &
Z2p> thea selec. “wonl<"2! p>
zlaceet> 2 pp thee clek pur oqornele
Type § OF OPercttoss
ra Asithemat’ ¢ operations
2. Assigament of erations
q P
3. compagiston opecceto 5 —~ = == equal value &
equal +ype
4. string operato-s s
‘ log cal operatos|s
6. fottetcc operator|4
a Tenasuy
& ype operator
You might also like PHP Practical 1, 2, 3,5,8,10 PDF
PHP Practical 1, 2, 3,5,8,10
35 pages