Professional Documents
Culture Documents
<seupt>
funtion Myfuntion )
2 vaYs s prompt ('entu);
VaY str. subsbinglo,4))
doumet. write ("n");
</suipt va oY Odo.
to qe nerate YMdom no. amd c ce
W Cod
var mn: matn.Yandon C)
if (n.2 o)
docu ment.write( evan'");
else P
dlocu ment. write("odd;
S
b
fu
Numbe in javasept me in dloubleporeain b4 bita format
VCodE Snippet to die play ignet numbc tom umg,Am2
num , nm
num4);
x= matth.max(num1,num2,num3,
document write( "Hignut valne: +)j
nuhbes
not nawe speei
Vaid jowassapt VaiabesOshoud
) oud mt hawe al charaters
sthould not be some as predefind thing
Ue funchion, Na N ete.
tXptaiM: 9. Event Handles: H a comnmd tht is wsed to
to
speeify aetion in Yespo ne
event. Onload, On Mouseover.Oneick
2. Objets: Objets ae cole ctios o name-vaue pauTS,
The name pat is a jowasenipt string wie vaue com be ete.
Vaue o amothe obfect. Mata olbject, shing objeut.
3.0peYators : Thex ae bols which peform some operation
On Vaues. Avi thmetie peatm, lagieal operatrv
sondg
<suipts
var dow : C"Monday 'Sunday'
vaY n - Math. andom l dow)
doumnt.write (n);
WCod to aceept aghing from wer omd duply the first ocEMCe
of the ovda
<htrms
<body>
<suipts
var str prornpt ("nin a sting " i
docurnant. write (str matehl"gouda")
doenmant. write ( str. Inde xop ("qood)2)
</seript <(bocy /htme
PYediet he output <seipt >
n= 20
X= n<<
doumemnt. write ("vauu aften right slfti" +m)
doument.write ( "vae atteu wtt uft +}
</saipt> (n+2)+ 2
Vau
n<s 2 meoms n X2x2
oploy no puits
i add folcouin aay to am a
a (° Potato", "Brinjal' aurd"])
Ams user: is fuits push ('auovo')
(ö)fuits. shift ()
io documant.urite (fpuits.ungi);
(iv) fuits. concat (veg)i
wDetlane a fnetion stoingsimjavo to aceept two sting arqenrs.
The functicn snod
9conNet botth strings to ppenca
Kancin for shingi omd shing2 omd display 1uifoun
th
Q) loe au oceences of aue 'A' in sfing1
Ew Display irst cnaracter of stri ng2.
Aswer: function stringsin jova (s1, s2)
s1. to Upper casel))
S2. to Upper
caxl);
dounent.write ( s2.matc (Sa))
dowment. write(s1. Yeploe ("A', *))
doument. write (s2 -substring (o));
3
| . Tw0 oys to cowet numbr to
unay t operatr (concalenatin)
A ohat do
by mopekus amd mnodA f am objeut?
repeatie : dfine th ciarateniitiu of om
Methods: aue te actions ttnat con be objet. eg: otor, Umgthete
alert, confirm ete petormed on the obet. g
’ Afntian
or Ateted functian
deelared
net ed function. iide amother fmctin ç caled tnner or
e: function abe C)
YuttmatL, vow a 1
4.
Lossy Lossess
Vthey ose YUomtion (shaupnen) Vloslem do ot Looe my
whn coweted to oten
formatu informaton
eq: JPEG
S. FouY Search Engine
components :
Page tite (ony tist 70 charatem)
" Page Des ouiplion ( fist Is6 chaacteus)
"Page heywDrdh
"
ines to
othepages
6. Statie webpagu: bane
websites, elements on't
(HTML,PHP) Umil amd nnles oou- end code u chomge
pdoted!
Dynommiecepagesi
(ASP, PHe) Wepage ele memla heep wpdatiug
time.
feate: wed to Karch ino, submit orms
IS
Tutnet Tuformation Suwicer
Memoin extemion o audio, video.image fies
Souna fitese files containing data in audio format.
Sovage: the a digital
of sownd objects wd in th compoitin
natile Unloddimg sOndf s
)Dont vaudate webpag
tag
additiona atrìbutes
Check out emhed teg for
Embedding Video :
OYoutube Embed code: can be copied and psted
) Vidu o mbd cod
(3) fae book udeo
eo inteqration
(9 HTML S ideo
0Embed