File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
22// break keyword
33for ( 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 ) ;
Original file line number Diff line number Diff 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'
1414console . log ( hello ) ;
1515var 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);
You can’t perform that action at this time.
0 commit comments