Vous êtes sur la page 1sur 5

JavaScript is the programming language of

HTML and the Web. JavaScript (not to be


confused with Java) is a high-level, dynamic,
multi-paradigm, weakly-typed language used
for both client-side and server-side scripting.
JavaScript is a programming language that
adds interactivity to your website (for example:
games, responses when buttons are pressed or
data entered in forms, dynamic styling,
animation).
Get free JavaScript source codes & script , very easy and simple
programs just copy and paste , and get free JavaScript codes ,
popup menu , beautiful menu-bar with hover , digital & analogue
clock , gif animation cartoon , games , calendar and much more.
Basic JavaScript examples, including popup, status bar messages,
dropdown menus, image rollovers, and more…Simple Java Script
Games all codes with examples. Java Script Made easy offers
large collection of JavaScript source code.
create games very easily and simple. ---
visit our website javascriptcodefree.com &
picnicspoints.blogspot.com
<!--Using Arrays-->
var marks=new Array(5); var total=0;
for(a=0;a<=3;a++){marks[a]=eval(prompt("Type marks","type here"));
total+=marks[a];} for(a=0;a<=3;a++){document.writeln("obtained
marks"+(a)+"is "+marks[a],"<br>");}document.writeln("total marks
obtained is "+total+"<br>");document.writeln("Percentage is
"+total/5+"<br>");var per=prompt("type your
percentage");if(per>=70){document.writeln("A1 grade"," Excellent");}else
if(per>=60){document.writeln("A grade "," V.Good");}else
if(per>=40){document.writeln("B grade","
v.Poor");}else{document.writeln('F (fail)');}

Vous aimerez peut-être aussi