Comment on page
🖋
Types Practice
/*
< Types basic 1 >
💬 를 적절한 값으로 고쳐주세요!
*/
const empty = "";
const result = typeof empty;
if (result === 💬) {
alert("🎉");
}
/*
< Types basic 2 >
💬 를 적절한 값으로 고쳐주세요!
*/
let empty;
const result = typeof empty;
if (result === 💬) {
alert("🎉");
}
/*
< Types basic 3 >
💬 를 적절한 값으로 고쳐주세요!
*/
const num = 3;
const result = isNaN(num);
if (result === 💬) {
alert("🎉");
}
/*
< Types basic 4 >
💬 를 적절한 값으로 고쳐주세요!
*/
const numberABC = Number("ABC");
const result = isNaN(numberABC);
if (result === 💬) {
alert("🎉");
}
/*
< Types basic 5 >
💬 를 적절한 값으로 고쳐주세요!
*/
const ten1 = 10;
const ten2 = "10";
const result = ((typeof ten1) === (typeof ten2));
if (result === 💬) {
alert("🎉");
}
Last modified 1yr ago