-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[javascript/en] Added for/in loop JavaScript #1372
Conversation
For/In loop JavaScript
Hi, Thanks for the contribution! IMO, it'd be a good idea to at least mention the fact that this iterates over every property across the entire prototype chain, the existence of |
Hi @adambrenecki, Thanks for your attention! I will update with yours suggestion and commit. |
more explanation about for/in java script.
Hi @adambrenecki, I've already made the PR with your suggestions. |
var description = ""; | ||
var person = {fname:"Paul", lname:"Ken", age:18}; | ||
for (var x in person) { | ||
if( person.hasOwnProperty( x ) ) { |
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.
please fix the code style
Fixing code style
Is it ok now, @vendethiel ? |
Thanks! |
[javascript/en] Added for/in loop JavaScript
For/In loop JavaScript