What is the ‘Strict’ mode in JavaScript and how can it be enabled?



What is the ‘Strict’ mode in JavaScript and how can it be enabled?..

Answer / Neeraj

Strict mode in JavaScript is used to disallow certain actions in order to prevent errors and enforce a more predictable behavior. It can be enabled by adding 'use strict' at the beginning of a script or function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What is primitive data type in javascript?

1 Answers  


Can you use javascript to hack?

1 Answers  


How do I enable javascript on google?

1 Answers  


what difference between args.length and args.length() in command line argument?

1 Answers  


What is the event loop in JavaScript?

1 Answers  


What's the difference methods get and post in html forms?

1 Answers  


What is a closure in javascript?

1 Answers  


When selecting the states by giving the country as input using ajax cal, how can we ensure that every time it is hitting the DB and fetching the data? Many time it may load from the cache.

1 Answers   CTS, GE,


How many types of functions are there in javascript?

1 Answers  


Is javascript event driven?

1 Answers  


find the common prime divisors of two given numbers

0 Answers  


What is the default scope in javascript?

1 Answers  


Categories