Created
August 30, 2020 11:28
-
-
Save hw0k/d4f584f1688316634f75b35f34e043ed to your computer and use it in GitHub Desktop.
TSB 1
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
// Problem 1 | |
const obj = { width: 10, height: 15 }; | |
const area = obj.width * obj.heigh; // NaN | |
// Problem 2 | |
function checkNumberIsZero(par) { | |
return par == 0; | |
} | |
checkNumberIsZero(0); // true | |
checkNumberIsZero([]); // true | |
checkNumberIsZero(""); // true | |
checkNumberIsZero(false); // true | |
checkNumberIsZero(this); // ? (this에 따라 달라짐) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment