You are on page 1of 15

II

t iilJ/1
I I
/t :t t

0 p.html X +
➔ C (i) File I (::/tJsers/hp/Desktop/p.htrr1I
Eligible IJ p ,. Notepad
FIie Edit Forrnat View Help
<script>
var a,b,c;
a=19~
if(a>=18)
11
document.write( El igible 11 );
else
docu ment,write( 11 Not El igible 11 );
</script>
, ·0 p. ht m l
to p /p .h tm l
/h p /D e s k
➔ C © File / C:/ U s e rs
~
~ p - N o te p a d
100 V ie w H e lp
Fi le Edi t F o rm a t
100 <script>
v a r a ,b ,c ;
100 a=56; =·~
--~ ~
_;;_-
"=-

b=44;
c=a+b·I
<b r> < b r > '' );
u m e n t. w ri te ( c + "
t i .... ... . .
tml
f- ➔ a © File I C:/Users/hp/Desktop/R.H

xt display with fo n t ta g
vascript extdisplaywirhouthtmlmJ avascript te
headin g tag
avascript text display with

y w it h f o n t a n d p ta g
javascript text displa D X

8 R- Notepad
p
File Edit Format View Hel
<script>
t display without html tag");/
document.write("javascript tex ascript tex t display with font tag</font>");
im e' siz e= 7> jav
document.write("<font color='l )
("< hl>javasc rip t tex t displa y with heading tag</hl>"); avascript tex t display wi th font an d p tag</p></font>"
document.write ra MT Script Capitals'><p align
='center'>j
lor='r ed ' siz e=? face= 'M atu
document.write("<font co
</script>
I
II I
I

I C:/U sers/hP!Desktc,p/f.htm
'

0 (1) 1:fl<:~
'I
It ,,/ ,Ii, :l ,/ II ' I I I I ii

,11t11, ~IJ/IJ/ l~hlUJii/hwJ/i,q


, Ji•1
Ji U( 11d

Not' Eligil1Jo
1111 111 1 ijlV/1 Y 1,ui411~u,1U
F Ii /ill1/IU
1/ 111l,h~t1!/l~Ul Ii /l#ijl~ h 1 ,@1111/i11liJ/i/
I
11 1 11 11
l 1lij///1
/ 11!~ti/ 11 1ij1j~I, f
111/rIi 11iij1
1
1, /dlIll iiI·Uli11Ihilli11
I 1IUhU1~;fflhlli 1nm. i
I
'

p Nott:~1,)a(1
•m
I '
I

I
I
I

'

Fi'le Edit Forrnat View Help


<script>· I

var a,b,c;
a=10;
if(a>=18)
document. w ri te (" EI igib/e "),
else
document.write{"Not Eligib
</script>
II K - Notepao
D X
le Edit Format View Help
Kri~> 1
, ~
locument.write("javascript text display without html tag");\
locument.write("<font color='lime' size=7>javascript text display with font tag</fon t>"); 1 11
' 1 '1
iocumen t.write(" <hl>java script text display with heading tag</hl> ");
'
:iocument.write("<font color='re d' size=7 face='M atura MT Script Capitals'><p align='ce nter'>jav ascript
te~t display with font and p tag</px /font>" )
,/script>
lNFUT ..Enter
0
_I INPUT Enter
-1 LET D ~
0
nz
5 PR INT TJ1e
6 END

Enter the initia l mileag e? 25


Enter tlte f i na I n i leage? 3
The distan ce Couere d--22
I
tLS
INPUT

Ente r the weight in ki lograr11?


THE POUND IS 187. 8
""'[ ·1111t· .e ·1 41u: II·11t:!1 n::J.,I.11e:s: 1."1rl. ~:!'. n'.':n.Jt.
11
• ·1
11
1r11a.1.1mi b e1··
., 111
~.. N
·
·~ H: = NI / Z
: . - l t, I
i
f -· .. ..
1
' Tl1e l11cr.1t. If. [111]!: ·t .]l1ir:. ]11t1 ru1nhe r=
11
• ; H
. ...,.-
;q,

tl --' fr'!i'~' l
tr
i
!i
= Unt it led
"E,,tt-:r ll,e le11gth i11 Ki l . ler '· ; K
t1 K / l.t•
''TJ.e le119th i ll 11i les ='' : n
l 1n1t "'"·'
0 file:///C:/Users /hp/Desktop/r .html

What is your option


l r - Notepad

11-:-:-s----------11~~
File Edit Format View Help

<p>WJ.w.:t i.,s yo,.,,.,y ~<IP >


<~ ft(pe,= II~ I I ~ = II~ I I ~ 11ye,s11> Ye.-s<b-Y>
< ~ ft(pe ,=''~ 11 ~ = •1~ '1 vo.,.u.u,= 11 No 11 > No<b-Y>
What is your option
<b-Y>

I~~
<p>WJ.w.:t i.,s ~o-t/4,V ~<IP >
\::s < ~ ft(pe,=' 1~ 11 ~ = ' ' ~ ' ' vo.,.u.u,=' 1Ye.-s''> Ye.-s<b-Y>
< ~ ft(p.e,= 11 ~ 1~ = 11~ 11 vo.,.u.u,= 11 No 11 > No<b-Y>
I ■ t - Notepad
file Edit Fom1at View Help

<p>W ~ \.vo-ultl yo-u. ~ for ~<I p>


< ~ ftfyu,= ''~b-o -x,'' ~=' 'fr~ ' ~ - / / ~JI > Ap-ple,
< ~ ftfyu,= ,'~b-o -x,." ~=" fr~' ~ ="o- r~e/'> 0Yttr+~e
< ~ ft-(y.:i.e,- ll~b-o -x,II ~='' fr~~ ~ = J l ~ + - ~ I I ) ( 3 ~

l.
What is your option

@Yes
ONo
5, ;
Ill r- Notepad
File Edit Format View Help

<p>W~ ~ !:J~ ~<IP >


( ~ ft( y;z.e,= II ~o..tlu,11 ~ = II o-pfu:rvt,s II ~ = II'(t1") yt1( 1,-r-)
<~ ft(y;z.e,= II ~o..tli,,o" ~ = II o-pfu:rvt,s,, ~="No "> No< b-r->
What is yo ur op tio n ~ r- Not epa d
File Edit For mat Vie w Hel p
0 Yes
ON o
fp>Wvu;i.t- i/2 y ~ ~ < IP=>' ' ~ ' ' ~= ''Y t- s'' > Ye.-s<b-r->
< ~ ftfr-z.e,=''vo.-cli,o'' ~
''vo.-cli,o'' ~ = ' ' ~ ' ' ~= ''N o' '> No<b,r->
< ~ ftfp.e,=
What is yo ur option
<b-Y>
@ Ye s <p>Wvu;i.t- i/2 yfrlM"' ~ < IP >
ON o ~ ftfr-z.e,=''vo.-clu,'' ~ = ' ' ~ ' ' ~= ''Y e. -s ''> Ye.-s<b-r>
<
< ~ ftf~=''vo.-cli,o'' ~ = ' ' ~
' ' ~= ''N o' '> No<b-r>
0 1
I0
file:/ //C:/U sers lhpN ideo s/r.h tml

.~::/ -~~

-~~-.=:.~
-

- '.\,.~-\, ,"'=uC,Mn~/
__
,._____

You might also like