3/7 Short-Term Memory- Purpose of "return true"


I figured out the correct code, but I'm wondering what the purpose of "return true" is.

This bit of code is right after the the end of the switch statement:

return true;

The code runs fine with this line in there, and it runs fine when this line is deleted. What is that bit of code actually doing?


return true; simply returns true when it is called. I will use returns or console.logs throughout my code for testing sometimes. also it could be just a placeholder for more logic that would eventually be placed there if it were to be turned into a larger program.