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
Thanks!
I sometimes impose additional constraints on myself when doing katas inspired by the coderetreat events, when you code in pairs and write the same program from scratch multiple times, each time with different restrictions. Coderetreat events use Game of Life for their sessions.
This piece of code is a result of me imposing a constraint that I'll only use arrow functions consisting of one expression. It's not readable, but the idea was to learn by doing something differently, or taking what you would normally do to the extreme. In my case, doing this kata was one of the reasons that led me to a realization, that arrow functions in JavaScript are very overused by developers, and I myself started using them less often.
This comment is hidden because it contains spoiler information about the solution
Thanks! :)
Are the replies to solutions somehow visible to people who have not yet solved the kata?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
You should return database['english'] when the IP is invalid, this way you need to change the english greeting only in one place, if you decide to change the greetings in the future, e.g. to say "Hello" instead "Welcome".
This comment is hidden because it contains spoiler information about the solution