Brain power overload ❗❗❗ Cannot compute
What in the world
😅 Well that's embarassing. I thought it was giving me the SAME error for the first part. Thank you.
Right... but it should be returning -1, just like it returned 7. That's literally the only thing I changed. Why is "return -1;" returning "undefined"? When I changed "-1" to "7", it returns "7", not "undefined".
The error message works like this:
pageIndex(40): expected undefined to equal -1 // <- this was the expected answer ^ // Your code returned this
And you can see that when you returned 7 instead.
This comment is hidden because it contains spoiler information about the solution
One of the most readable short form answers. 👍
Thank you)
those are just the variables names with silly 'unreadable' labels. Definitely NOT a best practice.
Excellent comments and readability
Loading collection data...
Brain power overload ❗❗❗ Cannot compute
What in the world
😅 Well that's embarassing. I thought it was giving me the SAME error for the first part. Thank you.
Right... but it should be returning -1, just like it returned 7. That's literally the only thing I changed. Why is "return -1;" returning "undefined"? When I changed "-1" to "7", it returns "7", not "undefined".
The error message works like this:
And you can see that when you returned 7 instead.
This comment is hidden because it contains spoiler information about the solution
One of the most readable short form answers. 👍
Thank you)
those are just the variables names with silly 'unreadable' labels. Definitely NOT a best practice.
Excellent comments and readability