Complete MP09

This commit is contained in:
2023-03-16 23:06:34 -05:00
parent 142d7f5df2
commit 01974fa83c
35 changed files with 349 additions and 12 deletions

View File

@@ -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>