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

예제 31.27의 답이 잘못된것 같습니다. #2

Closed
rbals0445 opened this issue Oct 21, 2022 · 0 comments
Closed

예제 31.27의 답이 잘못된것 같습니다. #2

rbals0445 opened this issue Oct 21, 2022 · 0 comments

Comments

@rbals0445
Copy link

rbals0445 commented Oct 21, 2022

[Boundary-type assertions](https://github.com/wikibook/mjs/blob/master/31.md#31-27)

target.match(regExp); // -> [" ", " ", ",", " $%&"]  여기 결과가, length가 4인것처럼 나와있지만 실제로는

[" ", " ", "," , " ", "$%&"]  length가 5 되어야 합니다.

정답 : ' _$%&' 이라서 공백 이후에 $%& 나와야 합니다. [' ', '$%&']
오류 : " $%&" 으로 공백이 포함되어 나와있습니다.
  • 실행결과 첨부합니다

image

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

No branches or pull requests

2 participants