What is the significance of the ‘use strict’ directive in the context of the arguments object?

JavaScript Professional Hard

JavaScript Professional — Hard

What is the significance of the ‘use strict’ directive in the context of the arguments object?

Key points

  • 'use strict' directive in strict mode prevents aliasing of arguments to named parameters
  • Changing a named parameter does not affect arguments[n] and vice versa
  • This helps maintain separate references to named parameters and arguments object

Ready to go further?

Related questions