πŸ“Š JavaScript
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) Executing string as JavaScript

Explanation: 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.

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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
141
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate