Skip to content

Commit a8672da

Browse files
2 parents 0faaa1c + 1a09e95 commit a8672da

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

JavaScript Part-01/22BreakContinue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
// break keyword
33
for (let i = 1; i <= 10; i++) {
4-
if (i === 4) {// (i == 4) loop will break
4+
if (i === 4) {// (i == 4) loop will break if (i == 4)
55
break;
66
}
77
console.log(i);

JavaScript Part-01/44Hoisting.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ function hello(){
1010
// we can not call function before of it's decleration.
1111

1212

13-
// using var we get 'undefind'
13+
// using var then will we get 'undefind'
1414
console.log(hello);
1515
var hello = "Hello World";
1616
// console.log(hello);
1717

1818

19-
// but in the case of 'let' & 'const' it is give error
19+
// but in the case of 'let' & 'const' it w give error
2020
// console.log(hello);
2121
// let hello = "Hello World";
2222
// console.log(hello);
2323

2424
// console.log(hello);
2525
// const hello = "Hello World";
26-
// console.log(hello);
26+
// console.log(hello);

0 commit comments

Comments
 (0)