Home >Web Front-end >JS Tutorial >javascript eval(func()) usage example_javascript skills
The function of eval is actually very simple. It is to pass a string to the JS interpreter, and the Javascript interpreter will interpret the string into Javascript code and execute it.
Take the simplest example: