JavaScript is one of the most important technologies on the web. It provides the means to add dynamic functionality to …