Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit01982d4

Browse files
NyanPunchViolet-Bora-Lee
authored andcommitted
javascript-tutorial#359 [함수의 prototype 프로퍼티]과제2 문제 번역
1 parent2a8e309 commit01982d4

File tree

1 file changed

+4
-4
lines changed
  • 1-js/08-prototypes/02-function-prototype/4-new-object-same-constructor

1 file changed

+4
-4
lines changed

‎1-js/08-prototypes/02-function-prototype/4-new-object-same-constructor/task.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ importance: 5
22

33
---
44

5-
#Create an object with the same constructor
5+
#동일한 생성자 함수로 객체 만들기
66

7-
Imagine, we have an arbitrary object`obj`, created by a constructor function -- we don't know which one, but we'd like to create a new object using it.
7+
생성자 함수가 하나 있고, 이 생성자 함수를 사용해 만든 임의의 객체`obj`가 있다고 가정해봅시다. 지금은 이 생성자 함수를 사용해 새로운 객체를 만들어야하는 상황입니다.
88

9-
Can we do it like that?
9+
정체를 모르는 생성자 함수를 사용해 새로운 객체를 만드는게 가능할까요?
1010

1111
```js
1212
let obj2=newobj.constructor();
1313
```
1414

15-
Give an example of a constructor function for`obj` which lets such code work right. And an example that makes it work wrong.
15+
위와 같은 코드를 사용해 객체를 만들 수 있게 해주는 생성자 함수를 작성해보세요. 여기에 더하여 위와 같은 코드가 동작하지 않도록 하는 예시도 하나 만들어보세요.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp