JavaScript: Characteristics and Advantages
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Energy Metabolism</title>
<meta name="author" content="David P Leader">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="acknowledgement" content="Design based on page by Felix Engel">
<style type = "text/css">@import url("sixb.css");</style>
<style type = "text/css">
body{height: 540px;}
#main{height: 310px;}
</style>
<style type = "text/css">@import url("print6b.css") print;</style>
<script src="sixb.js" type="text/javascript"></script>
<script type="text/javascript">
// Copyright DP Leader 2005.
// May be used freely provided acknowledgement of authorship is included.
// arrays of volumes and concentrations
totalVol = new Array(1200, 1500, 1800, 2400, 3000);
stockConc = new Array(50, 60, 75, 100, 150);
finalConc= new Array(5, 10, 15, 20, 25);
//number of items
var max = 5;
// Generate the js random number
{
var ranNum = Math.floor(Math.random()*(max));
return ranNum;
}
•Resides in HTML page
–Doesn’t require plugin or additional software
–Can be edited directly
•Maths and Web capabilities
–Answers can be checked on the fly
–Page can be updated dynamically
•Independent of Server
–Can be packaged as off-line application
–Easier to integrate into Moodle