How do you enable strict mode in a JavaScript file or function?
Strict mode is automatically enabled in all JavaScript code
By enabling strict mode globally in the browser settings
By setting the "strict" flag in the JavaScript settings
By adding a "use strict" directive at the beginning of the file or function