Personal preference. I find for loops more difficult to “read” quickly. I’m still very much a beginner. I understand the syntax and use of both, though.
Interesting. Anyways, thanks for the talk. You gave me something to think about.
Thanks, you too. .
What’s the point of the parentheses after the function identifier?
Without the parentheses it doesn’t know to execute the function. If you try it without them, the console displays nothing.
why doesn’t sayThanks()*3 work for this exercise to print it 3 times? I’m sorry if I’m asking a dumb question.
Hey @design4906009099, welcome to the forums!
I would say this is because what you are trying to do by running this statement is multiple the output of the function by three. You aren’t making the function be called three times, you’re multiplying the output of the function by three.
That makes a lot of sense. Thank you for the help.