Data Types
1. μ«μν
console.log(1 / 0); // Infinityconsole.log(Infinity); // Infinityconsole.log("μ«μ μλ" / 2); // NaN
2. BigInt
const bigInt = 123456789123456789n;
3. λ¬Έμν
let str = "Hello"; // ν° λ°μ΄ν let str2 = 'Ella Yeonsu Choi'; // μμ λ°μ΄ν let phrase = `Nice to meet you`; // λ°±ν±let name = "Ella" // λ³μλ₯Ό λ¬Έμμ΄ μ€κ°μ μ½μ console.log(`Hello, ${name}!`) // Hello, Ella! // ννμμ λ¬Έμμ΄ μ€κ°μ μ½μ console.log(`the result is ${1 + 2}`); // the result is 3
4. Booleanν
5. null κ°
6. undefined κ°
7. κ°μ²΄μ μ¬λ³Ό
8. typeof μ°μ°μ
Last updated