At this point, you might be thinking to yourself, documentation is good and all, but there’s no way it will solve all of my issues! And we totally agree. All programming languages have difficult problems and strange edge cases that appear unexpectedly and are sometimes impossible to solve alone.
If you are ever stuck trying to solve a coding problem, we strongly encourage you to Google for a solution. One of the best sites you will see appear in the search results is Stack Overflow.
Stack Overflow is a question and answer forum where frustrated programmers post issues and other programmers discuss and vote for solutions. Almost always if you have an issue, Stack Overflow has an answer.
If you are ever programming and a problem is becoming so insurmountable that you want to quit, Stack Overflow is a great place to go to get unstuck.
In the code editor, we’ve included an unfinished function,
containsCake(). It takes a string and checks if that string contains the substring
'cake' inside of it. If so, it should return
true. If not, it should return
Using the information in this Stack Overflow post, implement the functionality of this function.
If you’re stuck on how to translate the answer from this forum into working code, check out the hint.