Created
February 4, 2015 00:58
-
-
Save gkatsev/e0e89fc04aedf6b06f98 to your computer and use it in GitHub Desktop.
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 bar(x) { | |
"use strict"; | |
switch (x) { | |
case 1: | |
let foo = 5; | |
console.log(foo); | |
case 2: | |
foo = 6; | |
return console.log(foo); | |
} | |
} | |
bar(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment