Testing in JavaScript with Jest
A common way to make sure code works is through the use of console.log, comparing its output to the expected result. This works, but there is another way that is more formulaic (and also often desired by companies) to test code, and that is through Jest.