-
Notifications
You must be signed in to change notification settings - Fork 0
/
day5.js
55 lines (37 loc) · 897 Bytes
/
day5.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
41
42
43
44
45
46
47
//exe-28
//bom & dom
const prompt = require('prompt-sync')();
//console.log(window)
//console.log(window)
console.log("window");
//exe-29
// let age=prompt("entr your age");
// age= Number.parseInt(age)
// const agecal= (age)=>{
// return age>=18?true:false;
// }
// if(agecal){
// console.log("you can drive");
// }
// else{
// console.log("sry not possible to drive")
// }
// do{
// let age=prompt("entr your age");
// age= Number.parseInt(age)
// const agecal= (age)=>{
// return age>=18 ? true:false;
// }
// if(agecal(age)){
// console.log("you can drive");
// }
// else{
// console.log("sry not possible to drive")
// }
// var desc=prompt("do you wanna quit?:")
// }while(desc!="y")
// let color=prompt("enter the bg-color");
// document.body.style.color=color;
//exe-30
let cpu = prompt("enter s, w or g")
let cpu1= math.floor(math.random()*2)