Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
Automatic semicolon insertion has been there since the beginning: https://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%201st%20edition,%20June%201997.pdf. A language without semicolons may be good, but a language where you need to think where you still can't omit a semicolon isn't.
You're correct, standard convention is to add semicolons but newer versions (ES2015 => ES2020) of EcmaScript or JS have situations where the semicolon is "inserted automatically", more information on that here: https://www.ecma-international.org/ecma-262/#sec-rules-of-automatic-semicolon-insertion
If you're not used to the ES2015+ way then it's fine to write JS with semicolons, it's good for readability and ultimately Bable or other compilers will fix your JS to meet legacy standards to be read by all browsers anyways. https://babeljs.io/docs/en/
I'm pretty sure that it is good practice to have semicolons where they need it? Correct me if im wrong
Why is it fine to not have a semicolon?
I was trying this in C++ at first. I could not get all the basic tests to output what the results were at the same time. I could only get one basic test at a time, and I COULD NOT figure out which one.
Switched to Python and could see all the tests evaluated simultaneously.
This breaks the problem down well, but the solution could be much simpler I think.