Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

eval 번역#167

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

Closed
1000peach wants to merge1 commit intojavascript-tutorial:masterfrom1000peach:eval
Closed

eval 번역#167

1000peach wants to merge1 commit intojavascript-tutorial:masterfrom1000peach:eval

Conversation

1000peach
Copy link
Contributor

eval/article.md 번역 입니다. 리뷰 부탁드립니다.


The result of`eval` is the result of the last statement.
`eval`은 마지막 문의 결과를 반환합니다.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
`eval`은 마지막문의 결과를 반환합니다.
`eval`은 마지막구문의 결과를 반환합니다.

가 어떨까요?


The reason is simple: long, long time ago JavaScript was a much weaker language, many things could only be done with`eval`. But that time passed a decade ago.
이유는 간단합니다. 오래 전, JavaScript는 훨씬 더 약한 언어였고 많은 것을`eval`만 사용하여 실행했습니다. 하지만 그 때는 10년 전에 지나갔습니다.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

10년 전에 지나갔습니다 라는 표현이 어색한 것 같아요 아래와 같은 표현은 어떤가요?

Suggested change
이유는 간단합니다. 오래 전, JavaScript는 훨씬 더 약한 언어였고 많은 것을`eval`만 사용하여 실행했습니다. 하지만그 때는 10년 전에 지나갔습니다.
이유는 간단합니다. 오래 전, JavaScript는 훨씬 더 약한 언어였고 많은 것을`eval`만 사용하여 실행했습니다. 하지만10년이 흘렀습니다.

- Can access outer local variables. That's considered bad practice.
- Instead, to `eval` the code in the global scope, use `window.eval(code)`.
- Or, if your code needs some data from the outer scope, use `new Function` and pass it as arguments.
`eval(code)`을 호출하면 코드 문자열을 실행하고 마지막 문의 결과를 반환합니다.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

역시 보다는구문이라 표현해줘야 명확할 것 같습니다.

Suggested change
`eval(code)`을 호출하면 코드 문자열을 실행하고 마지막문의 결과를 반환합니다.
`eval(code)`을 호출하면 코드 문자열을 실행하고 마지막구문의 결과를 반환합니다.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

역시 보다는구문이라 표현해줘야 명확할 것 같습니다.

반영하겠습니다. 감사합니다 :-)

CreatiCoding reacted with thumbs up emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@CreatiCodingCreatiCodingCreatiCoding left review comments

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@1000peach@CreatiCoding@javascript-translate-bot

[8]ページ先頭

©2009-2025 Movatter.jp