코딩공부
[8m] object.create()
milimiliemilie
2025. 3. 19. 22:13
# object.create()
var superObj = {superVal: 'super'}
// 이런 object가 있을 때, 얘를 부모로 하는 object를 만드려면?
var subObj = Object.create(superObj);
// Object.create() 안에, superObj를 넣어서 생성한다.
# 다음에 할 일
- async-await 따라해보기. (하다 말았음): https://milimiliemilie.tistory.com/11 여기의 JS Crash course 참고.