No need for a semicolon after an if statement. You can remove the semicolon after each of the if statements
However, you should try to put a semicolon at the end of return statements
Thanks, can you tell me when should i write the semi-colon in the code in genera, i saw people putting it after console.log, arrays, variables, if, for and more than that, can you provide me a knowledge to learn when to use it, and thanks for helping and for your time
No problem! The semicolon is used to end a statement, sort of like how you put a period at the end of a sentence. As a general thing, you might put it at the end of something you want to happen, but not when you are making functions or defining conditions (except for loops, if you have gotten there in the lessons).
It’s better explained in this article from FCC: