-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtutorial.js
74 lines (52 loc) · 1.24 KB
/
tutorial.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
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
// console.log("Hello world!");
// data type
// let names = "Dipikesh";
// let num = 2.34;
// let isAuthenticated = true;
// console.log(typeof names);
// console.log(typeof num);
// console.log(typeof isAuthenticated)
// console.log("thhis" + "is" + "good");
// console.log("3" + "4");
// var names = "Dipikesh";
// names = "kumar"
// console.log(names);
// const person = "Dipikesh";
// console.log(person);
//Condition Statement
// var numbers = prompt("Enter number");
// console.log(numbers);
// var num = 4;
// console.log(num==4);
// // if(true)
// if (num == 2) {
// console.log("Hurray, I won the lottery");
// }
// else {
// console.log("Bad luck")
// }
// const fruit = {
// names: "Apple",
// color:"Red"
// }
// console.log(fruit.color);
// var age = 20;
// var names = "Subhadeep";
// var profession = "Student";
// var person = {
// age: {hello:"okay"},//age:age//age:20
// names,//names:names
// profession
// }
// console.log(person.age.hello);
// 0 : 1,
// 1 : 2,
// 2: 4,
// 3: 5
// var numbers = [1, 2, 4, 5];
// console.log(numbers[5]);
// function displayName(name) {
// console.log(name+" "+"kumar");
// }
// var myName = prompt("Enter your name");
// displayName(myName);