InterviewSolution
Saved Bookmarks
| 1. |
What is the significance and benefit of including 'use strict' at the beginning of a JavaScript source file? |
|
Answer» The "use strict" is not a statement, rather a literal expression that is vital to your code as it presents a way for voluntarily enforcing a stricter parsing and error handling process on your JavaScript code FILES or functions during runtime. Most importantly, it just makes your code very easy to manage. Here are some of the benefits of using use strict expression at the beginning of a JS source file:
|
|