Model앱의 데이터와 비즈니스 로직을 관리.데이터의 상태를 정의하고 이를 변경하는 기능 제공.// 유저 모델class UserModel { constructor() { this.users = []; } // 데이터 추가 addUser(user) { if (user.name && user.email) { this.users.push(user); } else { throw new Error('유효하지 않은 사용자 데이터'); } } // 데이터 수정 updateUser(id, updatedData) { const userIndex = this.users.findIndex((user) => user.id === id); if (userIndex ..