-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
100 lines (75 loc) · 1.83 KB
/
Copy pathscript.js
File metadata and controls
100 lines (75 loc) · 1.83 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*let norNumber = "hello world"/2
console.log(norNumber)
console.log(typeof norNumber)
let result = 5 + '10';
console.log(result);
console.log(typeof result);
let multicationresult = 'abc' * 2;
console.log(multicationresult);
console.log(typeof multicationresult);
let num1 = 20;
let num2 = 30;
let num3 = 10;
let sum = num2 - num1;
console.log(sum);
let username
document.getElementById("mysubmit").onclick = function(){
username = document.getElementById("mytext").value;
document.getElementById("myh1").textContent =` hello ${username}`;
}
let pi = 3.14159;
let radius;
let circumference;
radius = window.prompt(`enter the radius of a circle`);
radius = Number(radius);
circumference = 2 * pi * radius;
console.log(circumference )
let a = 6;
let b = 9;
let c = 6;
console.log(a >= b);
console.log(b <= a);
console.log(a >= c);
console.log(5 == "5");
console.log(5 === '5');
let a = 5 + '5';
console.log(a);*/
/*let x = 6;
let y = 'son';
let z = 20;
String(x);
Number(y);
Boolean(z);
console.log(typeof x);
console.log(typeof y);
console.log(typeof z);*/
/*let myAge = 20;
let hasId = true;
console.log(myAge >= 18 && hasId);
console.log(myAge >= 18 || hasId);*/
/*let dayOfWeek = 3;
switch (dayOfWeek) {
case 1:
console.log("It's Monday! Time to start the week strong.");
break;
case 2:
console.log("It's Tuesday! Keep the momentum going.");
break;
case 3:
console.log("it's wednesday! we're halfway there");
break;
case 4:
console.log("it's thursday! almost the weekend.");
break;
case 5:
console.log("it's friday! the weekend is near.");
break;
case 6:
console.log("It's Saturday! Enjoy your weekend.");
break;
case 7:
console.log("It's Sunday! Rest and recharge.");
break;
default:
console.log("Invalid day! Please enter a number between 1 and 7.");
}*/