|
|
|
|
|
by richgieg
2265 days ago
|
|
If that's the case, then wouldn't both "asdf" and "qwer" be printed to the console when executing the following code? function test() {
switch (true) {
case console.log('asdf') === undefined: return 1;
case console.log('qwer') === undefined: return 2;
}
}
test();
|
|