HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
📝
프론트엔드 스쿨 교안(1기)
/
📝
(코테준비) 자료구조 및 알고리즘
/
☝
JS 100제 - 1권
/
🔥
문제12
/
✔️
답안
✔️

답안

const Wizard = class Wizard { constructor (health, mana, armor){ this.health = health; this.mana = mana; this.armor = armor; } attack(){ console.log('파이어볼'); } } const x = new Wizard(545, 210, 10); console.log(x.health, x.mana, x.armor); x.attack();