Skip to content

Commit

Permalink
Commit Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
neeru24 committed Sep 22, 2024
1 parent fa25711 commit 6c8e176
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions Functions/03_scope.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
//var c = 300
let a = 300
if (true) {
let a = 10
const b = 20
console.log("INNER: ", a);

}



// console.log(a);
// console.log(b);
// console.log(c);


function one(){
const username = "neeru"

function two(){
const website = "youtube"
console.log(username);
}
// console.log(website);

two()

}

// one()

if (true) {
const username = "neeru"
if (username === "neeru") {
const website = " youtube"
console.log(username + website);
}
// console.log(website);
}

// console.log(username);


// hoisting basicss


console.log(addOne(5))

function addOne(num){
return num + 1
}



// addTwo(5)
const addTwo = function(num){
return num + 2
}

0 comments on commit 6c8e176

Please sign in to comment.