-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjs.html
More file actions
76 lines (70 loc) · 2.61 KB
/
js.html
File metadata and controls
76 lines (70 loc) · 2.61 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
"use strict"
<html lang="en">
<head>
<meta charset="UTF-8">
<title>external.js</title>
<script src="js/conditionals.js"></script>
</head>
<<body>
<script>
var a = prompt("How many days are you renting The Little Mermaid?");
var num1 = Number(a);
var b = prompt("How many days are you renting Brother Bear?");
var num2 = Number(b);
var c = prompt("How many days are you renting Hercules?");
var num3 = Number(c);
var result = Number(a)+Number(b)+Number(c);
alert("Your total is $" + result * 3 );
</script>
<script>
var a = prompt("How many hours did you work for Google this week?");
var num1 = Number(a);
var b = prompt("How many hours did you work for Amazon this week?");
var num2 = Number(b);
var c = prompt("How many hours did you work for Facebook this week?");
var num3 = Number(c);
var result = Number(a * 400)+Number(b * 380)+Number(c * 350);
alert("Your pay check will be $" + result + " for the hours worked this week");
console.log("Cost of Rentals.");
</script>
<script>
// var d = prompt("Is class full?");
// // console.log('The user entered: ' + userInput);
// var e = prompt("Does class conflict with her schedule?");
// // console.log('The user entered: ' + userInput);
// if (d === no); {
// alert("Enroll");
// } else if (e === No); {
// } else {
// alert("Enroll");
// }
// alert("Thank you for using school admissions website.")
var userInput = prompt("Is the class full?");
console.log(userInput);
var userReply = prompt(" Does enrolling in this class conflict with her schedule?");
console.log(userReply);
</script>
<script>
var custReply = prompt("If you buy 2 or more items, I can apply the offer? Are you interested in this offer?");
console.log(custReply);
var Custreply = prompt("Would you like to become a Premium member? Their are no minimum purchase requirements.");
console.log(Custreply);
// var f = prompt("Has offer expired?");
// // console.log("The user entered: " + ussrInput);
// var Offer = (i > 2)
// if (Offer === yes); {
// alert("Apply");
// } else {
// alert("Do not apply");
// }
// if (f === No); {
// alert("Apply");
// } else {
// alert("Do not apply");
// }
// alert("Thank you for your purchase? Ask Cashier about Premium Member Benefits.")
</script>
</body>
</html
>