-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpractic.js
46 lines (33 loc) · 1.08 KB
/
practic.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
var prompt = require('prompt-sync')();
// let age=prompt("Enter the age : ")
// if(age<18){
// console.log("you get 20% Discount on Movie Ticket")
// }
// else if(age>=18 && age<=65){
// console.log("You get Ticket on Normal Price")
// }
// if(age>65){
// console.log("you get 30% Discount on Movie Ticket")
// }
// console.log("+++++++++ Program For Calculating Area Of Rectangle ++++++++")
// let lenght=prompt("Enter Lenght of Rectangle : ")
// let width=prompt("Enter The Width Of Rectangle : ")
// let Area=lenght*width;
// console.log("The Area Of Rectangle is : ",Area)
// let product1={
// name:"Burger",
// price:399,
// size:["small","medium","large"],
// discount:"43% on Each Size"
// }
// console.log(product1)
// console.log(product1.size[1])
let guessList = ["Ganesh", "Mihir", "Tejas", "Gaurav", "Swayam"]
console.log(guessList)
let check = prompt("Checking Name of Person : ")
// for (var i = 0; i <= guessList.length; i++) {
// if (check == guessList[i]) {
// console.log(`Welcome To Party ${check}`)
// break
// }
// }