Not a kata issue, OP got confused between classes and arguments, closing.
The circle arg is a Circle object. Take a look at the test section where the object is instantiated.
circle
Circle
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.
if (arr.length === 1) return arr[0][0];
b
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.
one ? false : true;
console.log(str)
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.
Loading collection data...
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