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.
I'll add more tests regarding those higher values,
I've never really thought about that issue regarding very low negative exponents, it's never come up in game development before. I'll try to fix it before making the next part.
Looks like we both left the
console.log
in our code :DNo problem.
This comment is hidden because it contains spoiler information about the solution
That feels kinda, cheaty; don't you think?
Did you know that you can use
||
after an expression, and then if that one is 'falsy' (is 0, '', doesn't exist, see more on the Mozilla website) it uses the one after. So instead of including a bunch of edge cases in the database, you could do:lang[language] || 'Welcome'
.