What is the purpose of the 'use strict' directive in JavaScript?
Example:
```javascript
'use strict';
// Strict mode code goes here
```
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.