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 get an error by creating an empty array (like const arr = [])
It was very easy but instructions were... unclear. Good luck you all too. Remember - it is easy!
Wrong returned grade. OP unlocked / solved it, closing
In its current state, your comment doesn't help understand what your problem is. Please use appropriate code formatting (w/ triple backticks).
Because from what I can tell, you're iterating through every integer from 1 to
base
and returning true as soon as one of those is a factor of the base. This always immediately returns true because you check for 1 (and also the base, but the program doesn't even get to it).You are given a
factor
argument, use it.Could be interesting to make a harder version of this that tests for 0 as well
This comment is hidden because it contains spoiler information about the solution
You are meant to assign 4 variables a value each, not write helper functions or something else. You should click "reset" button and try again :P
This comment is hidden because it contains spoiler information about the solution
用的for循环
咋才能把时间减短
This comment is hidden because it contains spoiler information about the solution
There is a typo in the Ruby test cases. Currently the test cases which should return 'A' are categorized under "should return a B for averages above 90".
I was able to figure it out when building a more complete game.
The kata is not flawed; thousands of people have solved it.
The idea is simply that the six functions listed are available to you to call upon.
Instead, your function returns strings of the function names, where nowhere in the description did it ask you to return anything.
Take note that the eror message says:
should call all 6 functions
followed by0 should equal 6
Loading more items...