Javascript eval function

In this blog, I will create a sample demonstrating how javascript's eval function works.
The eval function is used to evaluate code passed to it as a string. Let's take a look at the code: