- 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
Uh oh!
There was an error while loading.Please reload this page.
eval 해답 번역#225
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
산술 표현식을 계산하기 위해`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 commentThe reason will be displayed to describe this comment to others.Learn more. 프롬프트 창에 뜨는 메시지도 번역해주면 어떨까요? | ||
alert( eval(expr) ); | ||
``` | ||
사용자는 텍스트 또는 코드를 입력할 수 있습니다. | ||
입력한 문자열을 산술적으로 제한하여 안전하게 eval로 실행하기 위해, [정규 표현식](info:regular-expressions)을 사용하여 `expr`을 검사하면 숫자와 연산자만 포함하게 됩니다. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more.
|