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.
No
let
?I know it's trivial, but how is mutating the original arrays being accepted as a valid solution?. Likewise for most of the other answers here
No
const
?why this solution is "Best Practices"?
variables firstNames and lastNames becomes global!
This comment is hidden because it contains spoiler information about the solution
No var?
Why not
===
?I think you fixed your code already, but for the benefit of others, the output dog.toString() needs to change when the name is changed. Your version of toString() returns a string that never changes.
I did something like this and it kept giving me errors... happy to know i was on the right track...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
toFixed() returns a 'string' and you need to return a number.
This comment is hidden because it contains spoiler information about the solution
can we check the radius is the number type using "typeof"?if the radius's type is "number",then we can use the if-else again?