-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Restructure the Solution for 'Army of Functions' task and Fix Typos #2081
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
Conversation
Anything wrong with the SVG? |
a339630
to
997bed6
Compare
997bed6
to
b0c5dad
Compare
Encountered some problem on my end. Everything fixed now!
I fixed it by replacing the SVG with a new one! |
07a22fc
to
89e3c77
Compare
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 see the comments.
- Split PR please. One PR covers a lot. This way I can accept it partially.
|
||
```js run demo | ||
function makeArmy() { | ||
As you can see above, on each iteration of a `while {...} ` block, a new lexical environment is created. This implies that as long as we store the value of `i` in a variable in the `while {...}` block, created Lexical Environment will have that variable with value of `i`. |
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.
The second phrase is hard to understand.
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.
created Lexical Environment will have that variable with value of
i
.
^This?
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.
This implies that as long as we store the value of i
in a variable in the while {...}
block, created Lexical Environment will have that variable with value of i
.
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.
Does the entire sentence not making any sense or is it the way it is phrased? Do you have any idea how to simplify it? I couldn't think of anything atm. :-(
P.S. I think people can grasp the meaning if it is read along with the snippet below.
Please make different PRs. This one is quite big for review, I keep postponing it. |
Fix javascript-tutorial#2068 - Army of Functions Fix javascript-tutorial#2070 - Typo Fix javascript-tutorial#2056 - Grammatical Error Fix javascript-tutorial#2074 - Remove semi-colon after function declaration
89e3c77
to
0f5b63d
Compare
I have removed them. |
Could you make the requested minor changes please? |
Done. |
I'll merge it and review the part about the task. PLEASE make separate PRs for different articles =) instead of 1 huge PR (multiple branches help). |
Thanks! |
@MuhammedZakir I thoroughly re-examined and further updated http://javascript.info/task/make-army, basing on your suggested changes, hope it's even better now. |
Sorry about that! It won't happen again! :-)
Looks good! 👍 I found some grammar mistakes. As I am a bit busy now, I will make a PR later.
You are welcome! :-) Edit: Website is not updated. Are you perhaps updating it manually and not automatically on each new commit? |
Complements javascript-tutorial#2081
Fix grammar and indent some paragraphs. Complements javascript-tutorial#2081.
Fix #2068 - Army of Functions
Fix #2070 - Typo
Fix #2056 - Grammatical Error
Fix #2074 - Remove semi-colon after function declaration