-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscope.js
56 lines (39 loc) · 851 Bytes
/
scope.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
//var c = 300
let a = 300
if (true) {
let a = 10
const b = 20
// console.log("INNER: ", a);
var c =30;
}
// console.log(a);
// console.log(b);
// console.log(c);
function one(){
const username = "hitesh"
function two(){
const website = "youtube"
console.log(username);
}
console.log(website);
two()
}
one()
if (true) {
const username = "hitesh"
if (username === "hitesh") {
const website = " youtube"
// console.log(username + website);
}
// console.log(website);
}
// console.log(username);
// ++++++++++++++++++ interesting ++++++++++++++++++
// console.log(addone(5))
// function addone(num){
// return num + 1
// }
// addTwo(5)
// const addTwo = function(num){
// return num + 2
// }