The following script will validate. It is supposed to convert from one temp scale to another. I am getting the following error " line 15 ";" expected.
I cannot find this error. Please give me a hint
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Temperat ure Conversion</title>
<script type="text/javascript">
//<![CDATA[
<!-- HIDE FROM INCOMPATIBLE BROWSERS
var fahrenheit = new Array();
var celcius = 0;
for (var i = 0; i <= 100; ++i) {
fahrenheit[i] = i;
}
for (var j=0, j<=100, ++j) {
celcius = (fahrenheit[i] - 32) * .55;
document.write( fahrenheit[i] + " degrees Fahrenheit is equal to "
+ "celcius" + Celsius.<br />");
}
// STOP HIDING FROM INCOMPATIBLE BROWSERS -->
//]]>
</script>
</head>
<body>
</body>
</html>
I cannot find this error. Please give me a hint
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Temperat ure Conversion</title>
<script type="text/javascript">
//<![CDATA[
<!-- HIDE FROM INCOMPATIBLE BROWSERS
var fahrenheit = new Array();
var celcius = 0;
for (var i = 0; i <= 100; ++i) {
fahrenheit[i] = i;
}
for (var j=0, j<=100, ++j) {
celcius = (fahrenheit[i] - 32) * .55;
document.write( fahrenheit[i] + " degrees Fahrenheit is equal to "
+ "celcius" + Celsius.<br />");
}
// STOP HIDING FROM INCOMPATIBLE BROWSERS -->
//]]>
</script>
</head>
<body>
</body>
</html>
Comment