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