- Notifications
You must be signed in to change notification settings - Fork846
eval 해답 번역#225
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
eval 해답 번역#225
Uh oh!
There was an error while loading.Please reload this page.
Conversation
To make things safe, and limit it to arithmetics only, we can check the `expr` using a [regular expression](info:regular-expressions), so that it only may contain digits and operators. | ||
입력한 문자열을 산술적으로 제한하여 안전하게 eval로 실행하기 위해, [정규 표현식](info:regular-expressions)을 사용하여 `expr`을 검사하면 숫자와 연산자만 포함하게 됩니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
입력한 문자열을 산술적으로 제한하여
라는 말이 잘 안와닿네요.
산술식만 입력하도록 제한한다는 의미인데, 조금 풀어써주세요.
@@ -1,11 +1,11 @@ | |||
Let's use`eval` to calculate the maths expression: | |||
산술 표현식을 계산하기 위해`eval`을 사용해봅시다. | |||
```js demo run | |||
let expr = prompt("Type an arithmetic expression?", '2*3+2'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
프롬프트 창에 뜨는 메시지도 번역해주면 어떨까요?
javascript-translate-bot commentedSep 29, 2019
Please make the requested changes. After it, add a comment "/done". |
eval/solution.md 번역입니다. 리뷰 부탁드립니다.