ch04
This commit is contained in:
16
Chapter ZIPs/JavaScript/ch04/ex_4_11.html
Executable file
16
Chapter ZIPs/JavaScript/ch04/ex_4_11.html
Executable file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Example 4.11</title>
|
||||
<script>
|
||||
var name = "MaryAnn";
|
||||
var greeting = "Welcome home, ";
|
||||
document.write('<p>' + greeting + name + '!</p>');
|
||||
document.write('<p>' + greeting.toUpperCase() + name.toLowerCase() + '!</p>');
|
||||
document.write('<p>' + greeting.toLowerCase() + name.toUpperCase() + '!</p>');
|
||||
</script>
|
||||
</<head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user