사용자 도구

사이트 도구


tag:constructors

TAG: Constructors

문서날짜사용자설명
2021/05/03 11:10 오션 Javascript Objects * description : Javascript Object Constructors * author : 오션 * email : shlim@repia.com * lastupdate : 2021-05-03 The source of this article Javascript Object Constructors // Constructor function for Person Objects function Person(first, last, age, eye) { this.firstName = first; this.lastName = last; this.age = age; this.eyeColor = eye; } // Create a Person object let myFather = new Person("Anthony", "Young", 50, "green"); // Display age …