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
this kata predates the introduction of classes to JavaScript. Nowadays, it would be more idiomatic to use a
class
.Your code is almost right now (at least it does not timeout). One problem is the output is a 1-dimensional array whilst yours is a 2-dimensional one.
Math is your best friend, it is explained in your comments, you just have to convert them into valid code !! ^^
Also, read this
I found the table name misleading too
You miss semicolons?
This comment is hidden because it contains spoiler information about the solution
@marcosantoniodev template literals use backticks, not single quotes.
Template literals do work for me
Maybe you're pressing 'test' button, and those tests are missing for this kata, you should just 'submit'
Just submitted a working solution with template literals; the issue is not with the kata.
It's customers
Linear is worse then that.