No let?
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 ?
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...
toFixed() returns a 'string' and you need to return a number.
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?
Loading collection data...
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?