M

Mr. Dubey • 52.33K Points
Coach

Q. What is the purpose of the function eval?

  • (A) Executes the string as an integer
  • (B) Gets the value of the string
  • (C) Executing string as JavaScript
  • (D) None of the mentioned
  • Correct Answer - Option(C)
  • Views: 79
  • Filed under category JavaScript

Explanation by: Mr. Dubey
eval is a JavaScript native function that accepts a string and executes the string as JavaScript. It basically fires up the interpreter and allows the passed-in string to be parsed and interpreted at the time of invocation.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics