FAQ: Functions - Calling a Function

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.

1 Like

Interesting. Anyways, thanks for the talk. You gave me something to think about.

2 Likes

Thanks, you too. :slight_smile: .

1 Like

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.

1 Like

That makes a lot of sense. Thank you for the help.

1 Like