Hi Luiz! Great job on your solution!
You mentioned that you would like some comments on your JS syntax. I took a look at your code and it seems pretty good to me!
I do have a few suggestions:
- Use
===
instead of==
in JavaScript. The triple equals operator is known as the "strict equality" operator. It will not perform any type conversions when comparing two items. This is important so that you don't accidentally compare two things as equal. - If you are using a modern text editor or IDE, you can use linters and formatters to help make sure your code is written in a consistent way.
Hope this helps!
Marked as helpful
@LuizFlavioPinto
Posted
@Brian-Pob Thank you friend!! Going to look at this point