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.
Not a kata issue, OP got confused between classes and arguments, closing.
The
circle
arg is aCircle
object. Take a look at the test section where the object is instantiated.This not an issue, but I cannot close it.
This comment is hidden because it contains spoiler information about the solution
Are you sure of this?
if (arr.length === 1) return arr[0][0];
b
is constant in your code, you should be using the current ball position in your loop.This comment is hidden because it contains spoiler information about the solution
Thanks Chrono79, I totally forgot to flip the "switch" back the other way.
What do you think
one ? false : true;
does?Use
console.log(str)
before the return line.In the instructions (JavaScript) the "Circle" is capitalized, leading me to conclude that I had access "radius" on a "Circle" object, instead of using only the "circle" argument and vanilla JS.
This comment is hidden because it contains spoiler information about the solution