Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

리펙토링 ( DEFAULT, REST 파라미터 적용) #8

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Conversation

parc02
Copy link
Owner

@parc02 parc02 commented Jan 29, 2024

기존 버전 : 0.3.1

기존 요구사항 :

  • 2명 이상의 발표자를 입력받음
  • 입력 받은 발표자중에서 랜덤으로 한사람을 뽑아서 출력함
  • 클래스와 매소드를 사용하여 코드를 리팩토링

사용법

$ npm install -g pascalmin1
$ pascalmin1
hello pascalmin1

$ pascalmin1 발표자1 발표자2 발표자3 (...)
발표자: (Random)발표자

<<화면 캡처>>

  • 기존 출력 결과
    image

@parc02
Copy link
Owner Author

parc02 commented Jan 29, 2024

변경된 버전: 0.3.2

변경된 요구사항:

  • Default Parameter 사용하기
  • Rest Parameter 사용하기

사용법

$ npm install -g pascalmin1
$ pascalmin1
hello pascalmin1

$ pascalmin1 발표자1 발표자2 발표자3 (...)
발표자: (Random)발표자

<<화면 캡처>>

  • 변경된 출력 결과

image

@parc02 parc02 merged commit 0952009 into main Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant