- Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy patharrays_loops.html
More file actions
Latest commit
29 lines (22 loc) · 577 Bytes
/
Copy patharrays_loops.html
File metadata and controls
29 lines (22 loc) · 577 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<htmllang="en">
<head>
<title>JavaScript Tutorial - Arrays and Loops</title>
<linkrel="stylesheet" href="css/foundation.min.css"></link>
</head>
<body>
<!-- JAVASCRIPT -->
<scripttype="text/javascript">
varALEast=["Yankees","Red Sox","Orioles","Rays","Blue Jays"];
ALEast.sort();
document.write('<table>');
document.write('<tr><th>Teams</th></tr>');
for(vari=0;i<ALEast.length;i++)
{
document.write('<tr><td>'+ALEast[i]+'</td></tr>');
}
document.write('</table>');
</script>
<!-- END JAVASCRIPT -->
</body>
</html>