console.log and return aren't the same.
console.log
return
Firstly I am sorry for my spoiler mistake.
My function returning correct in every example but codewars didn't approve it.
Please mark your post as having spoiler content next time. What is your function returning?
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
console.log
andreturn
aren't the same.Firstly I am sorry for my spoiler mistake.
My function returning correct in every example but codewars didn't approve it.
Please mark your post as having spoiler content next time. What is your function returning?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution