Difficile
Quelles affirmations sont vraies à propos du mode strict de JavaScript ?
Auteur: Jean-marie CléryStatut : PubliéeQuestion passée 2110 fois
Modifier
2
Évaluations de la communauté
Nguyen
09/05/2024
Among the statements you provided:
True: Strict Mode prohibits the use of octal notation on numbers. So, var a = 015; would indeed throw an error in Strict Mode.
True: Strict Mode improves the security of the eval() function by allocating a dedicated scope to it. This helps prevent unintended variable leaks.
True: Strict Mode forbids explicitly writing a variable in the window object. So, window.foo = 'bar'; would be disallowed in Strict Mode.
True: Strict Mode throws an error if semicolons are forgotten. It enforces stricter syntax rules.
Questions similairesPlus de questions sur Javascript