-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-workshop_practice.html
82 lines (58 loc) · 1.71 KB
/
index-workshop_practice.html
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
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>workshop lab practice</title>
</head>
<body>
<script>
/*
let x = prompt("please enter how much you would like to exchange from CAD to USD :");
const usd = 1.37;
let conversionAmount = 0;
conversionAmount = x*usd;
document.write("Your amout converted of $"+x+" to USD is $"+conversionAmount+". With the daily rate of $1.37 USD to CAD.");
let x = prompt("Please enter your amnt you would like converted: ");
function convCalc(amount){
let usd = 1.37;
return amount = usd*x;
}
document.write(convCalc());
var info = [];
info["Name"] = "";
info["Phone"] = "0";
info["City"] = "";
info["Province"] = "";
document.write(item.length);
document.write(Object.keys(item).length);
*/
// loop until all courses are captured
let x = prompt("Please enter your course");
function courseMark1(course){
let theCourse = course;
let array = [];
let i = 0;
// for(let i = 0;i<x;i++){
// mark1 = [x];
// mark1 = prompt("Please enter your course marks");
// }
array.push(theCourse)
let className = prompt("Please enter the class")
array[]
// courseMark1(course[0]);
// if(m1===x){
// return m1;
// }
//
// return m;
console.log(array)
}
courseMark1(x)
// var course = [];
// course[0] = [courseMark1(course[0])];
// course[1] = [];
// course[2] = [];
</script>
<script src="practice.js"></script>
</body>
</html>