/
script.js
41 lines (32 loc) · 887 Bytes
/
script.js
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
var temp;
temp = prompt("Enter temperature for conversion");
console.log(temp + " Temp in Fahrenheit");
temp = ((temp-32)*5/9);
document.write(temp);
// console.log(temp + " Temp in Celsius");
// temp = ((temp*9)/5+32);
// document.write(temp);
// var temp;
// temp = prompt("Enter temp");
// if (temp > 90) {
// console.log("Wear shorts");
// } else if (temp <= 89 && temp > 70) {
// console.log("Still wear shorts");
// } else if (temp <= 69 && temp > 55) {
// console.log("nice jacket");
// } else if (temp <= 54 && temp > 40) {
// console.log("warm jacket");
// } else {
// console.log("winter");
// }
// for(var num = 1; num <= 100; num++) {
// if (num%3 === 0 && num%5 === 0) {
// console.log("fizzbuzz");
// } else if (num%3 === 0) {
// console.log("fizz");
// } else if (num%5=== 0) {
// console.log("buzz");
// } else {
// console.log(num);
// }
// }