Complete MP09
This commit is contained in:
@@ -5,17 +5,17 @@ Click nbfs://nbhost/SystemFileSystem/Templates/ClientSide/html.html to edit this
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>TODO supply a title</title>
|
||||
<title>Challenge 3</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script type="text/javascript">
|
||||
var age = prompt("Please enter your age.");
|
||||
if (age < 5 & ) {
|
||||
if (age <= 5 & age <= 12) {
|
||||
document.write("Congratulations! Your ticket is free!");
|
||||
} else if (age < 12) {
|
||||
} else if (age <= 12) {
|
||||
document.write("Your ticket costs $5.00.");
|
||||
} else {
|
||||
|
||||
document.write("Your ticket costs $9.00.")
|
||||
}
|
||||
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user