Nothing will print to console

This is the default data:

This is my function which won’t give any errors but also won’t print or do anything. Not sure what to do. I can’t put console.log(true) after return true; either.

Any help much appreciated.

once a return keyword is reached, the function hands back data to the caller signaling the function is done executing. So your code never reaches the log statement

2 Likes

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.