This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Everyone has story to tell</title> | |
<h1>Everyone has story to tell</h1> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var number = 4; | |
function test() | |
{ | |
if (number ==8) { | |
var number = 16; | |
} | |
console.log(number ); | |
} | |
test(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var number = 4; | |
function test() | |
{ | |
console.log(number ); | |
} | |
test(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var number = 4; | |
function test() | |
{ | |
(function() { | |
if (number ==8) { | |
var number = 16; | |
} | |
})(); | |
console.log(number ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function outerFunc(){ | |
var a=7; | |
function innerFunc(){ | |
console.log(a) | |
} | |
return innerFunc; | |
} | |
var output= outerFunc(); | |
console.log(output); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function outerFunc(){ | |
var a=7; | |
function innerFunc(){ | |
console.log(a) | |
} | |
a=100 | |
return innerFunc; | |
} | |
var output= outerFunc(); |