Skip to content

Instantly share code, notes, and snippets.

View khg0712's full-sized avatar
🎯
Focusing

Hugo Kim khg0712

🎯
Focusing
View GitHub Profile
-0 === 0 // true
1 / 0 //Infinity
1 / -0 //-Infinity
var a = "a"; //aλŠ” 이제 string νƒ€μž…
a = 1; //aλŠ” 이제 number νƒ€μž…
a = true; //aλŠ” 이제 boolean νƒ€μž…
a = null //aλŠ” 이제 null νƒ€μž…
a = undefined //aλŠ” 이제 undefined νƒ€μž…
var cat = new Object();//Object() μƒμ„±μž ν•¨μˆ˜λ₯Ό ν†΅ν•œ cat 객체 생성
cat.name = 'James';//cat객체의 ν”„λ‘œνΌν‹° μ„€μ •
cat.age = 2;
cat.leg = 4;