For the first question, I don't think you need to use your curly brackets in this case as you are using
else if statements inside a function.
For the second question, when you use
== you check if something is equal to something else. This is not strict. When you use
=== you check if something is equal to something else. This is strict. What strict does, is checks not just the equality of the two values, but also it compares the types of the two values too.
If you need further explanation let me know.
However If this helped your understanding please mark my reply as the solution.