Skip to content

Instantly share code, notes, and snippets.

@morkin1792
Last active December 9, 2019 19:55
Show Gist options
  • Save morkin1792/f9f95c5dd20046ac0f13ffcdcabdf2e6 to your computer and use it in GitHub Desktop.
Save morkin1792/f9f95c5dd20046ac0f13ffcdcabdf2e6 to your computer and use it in GitHub Desktop.
crazy js
const test1 = (name) => {
console.log(name)
{
console.log(name)
}
}
const test2 = (name) => {
console.log(name)
{
console.log(name)
let name = '2'
}
console.log(name)
}
const test3 = (name) => {
console.log(name)
{
console.log(name)
var name = '2'
}
console.log(name)
}
test1('abc')
test2('abc')
test3('abc')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment