Development

It is very easy to make mistakes when you have to handle variables, change them, keep track, etc. Especially in a loop. A great way to understand what's going on is to use the simplest debugging technique — console.log. This function prints onto the screen whatever you pass to it.

I have a function that iteratively calculates the factorial. The idea is simple: multiply numbers from 1 up to n.

User avatar R. D.
R. D.
19 January 2017
Hexlet

We are launching our new study program in English. The first course — Intro to Programming — has started yesterday, new lessons come out every Tuesday and Friday. It's free!

  • Starting from lesson 2 each there are exercises and quizzes.
  • Lessons include additional materials: recommended reading and watching, illustrations, lecture notes, et
User avatar Rakhim D.
Rakhim D.
07 December 2016