Sail E0 Webinar
Question
Which are the two functions that are not allowed in any secure subset?
Options:
A .  evaluate() and restrict()
B .  eval() and the Function() constructor
C .  debugger() and test()
D .  eval() and debugger()
Answer: Option B


eval() and the Function() constructor are not allowed in any secure subset because they allow the execution of arbitrary strings of code, and these strings cannot be statically analyzed.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers