-
Notifications
You must be signed in to change notification settings - Fork 346
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
Does anybody understand the thingamajig code? #25
Comments
Hi there. E.g. for size = 0: For size = 1: For size = 2: And continue. Now you do this for size = 5. |
Hi Elisabeth, You have helped me a lot, but I still do not understand why we get 6 clunks when calling thingamajig with argument 3. What's the main difference between the argument 2 and 3? (I think an explanation here would solve my problem... ;)) Thank you very much |
I agree! Sizes up through 2, make sense. After that is where I am getting lost - if it’s a while loop, I still can’t get it to work. Driving me nuts trying to figure out how this works. |
For size = 3: |
Hi all,
I just started with JavaScript by reading this book.
So far so good :) But I stuck on the thingamajig code.
I cannot exactly understand how the code is executed and why the console says 120, if we call the thingamajig function with 5.
Thanks a lot in advance
Cheers
Mee
The text was updated successfully, but these errors were encountered: