Computer Science, asked by alen9751, 1 year ago

Why is using the JavaScript eval() function a bad idea?

Answers

Answered by AbhijithPrakash
0
  1. Security (but as long as you generate the string to be evaluated yourself, this might be a non-issue)
  2. Performance: until the code to be executed is unknown, it cannot be optimized.
Similar questions