for (i = 0; i < 10; i++) {
doStuff();
}
That’s the JavaScript code that I Want to convert to CoffeeScript.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is explained on the introduction page: http://coffeescript.org/#loops
Edit/Update by JP:
The exact translation is:
You need to be careful with the “..” vs “…”, for example:
So you think, no problem… I’ll just loop until count-1!
Literal translation of:
is