Some thoughts on testing - the what and the how (javascript). Testing The primary reason for writing automated tests is to ensure that your code runs correctly. When you make changes to your code,…