ch04
This commit is contained in:
18
Chapter ZIPs/JavaScript/ch04/ex_4_28.html
Executable file
18
Chapter ZIPs/JavaScript/ch04/ex_4_28.html
Executable file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Example 4.28</title>
|
||||
<script>
|
||||
var str="Kitten";
|
||||
document.write("for the string: " + str + "<br />");
|
||||
for (j = 0; j < str.length; j++)
|
||||
{
|
||||
document.write("Letter number " + (j+1) + " is " + str.charAt(j) + ". ");
|
||||
document.write(" The Unicode value is: " + str.charCodeAt(j) + "<br />");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user