생성자 함수와 this 키워드(Constructor Functions and keyword "this")
HTML 삽입 미리보기할 수 없는 소스 function User(firstName, lastName, age, gender) { this.firstName = firstName; this.lastName = lastName; this.age = age; this.gender = gender; } const user1 = new User('Jill', 'Smith', 33, 'female'); const user2 = new User('Bob', 'Smith', 24, 'male'); user1 and user2 are objects of the class User. user1과 user2는 User 클래스의 객체입니다. You might be wondering how all these properties..
2023.05.09