Skip to content

Commit 3c0d0d9

Browse files
committed
[new 연산자와 생성자 함수] 충돌 해결 (계산기 만들기 과제)
1 parent 17cbdbb commit 3c0d0d9

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

  • 1-js/04-object-basics/06-constructor-new/2-calculator-constructor

1-js/04-object-basics/06-constructor-new/2-calculator-constructor/task.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,9 @@ importance: 5
66

77
아래와 같은 세 개의 메서드를 가진 생성자 함수, `Calculator`를 만들어보세요.
88

9-
<<<<<<< HEAD
109
- `read()` -- `prompt` 함수를 이용해 사용자로부터 값 두 개를 받고, 이를 객체 프로퍼티에 저장합니다.
1110
- `sum()` -- 프로퍼티에 저장된 값 두 개를 더한 후 반환합니다.
1211
- `mul()` -- 프로퍼티에 저장된 값 두 개를 곱한 후 반환합니다.
13-
=======
14-
- `read()` prompts for two values and saves them as object properties with names `a` and `b` respectively.
15-
- `sum()` returns the sum of these properties.
16-
- `mul()` returns the multiplication product of these properties.
17-
>>>>>>> upstream/master
1812

1913
예시:
2014

0 commit comments

Comments
 (0)