What is "strict mode" and how is it used in JavaScript?



What is "strict mode" and how is it used in JavaScript?..

Answer / Prem Datt

Strict mode is a feature in JavaScript that restricts certain actions and behaviors to improve code reliability, readability, and performance. It can be enabled by adding "use strict" as the first line of a script or function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What looping structures are there in JavaScript?

2 Answers   Satyam,


Why javascript is fast?

1 Answers  


What is Unobtrusive JavaScript & Why it's Important?

1 Answers  


What boolean operators does JavaScript support?

5 Answers   Aptech, HCL, Satyam,


show the date in textbox when we select item (items like-- today,yesterday,lastweek,lastmonth,lastyear) from dropdownlist using javascript?

1 Answers  


Which built-in method returns the calling string value converted to lower case?

1 Answers  


What is the difference between Local Storage and Session Storage?

1 Answers  


Does javascript care about whitespace?

1 Answers  


What is the difference between ‘let’ and ‘const’?

1 Answers  


What is stack queue?

1 Answers  


What are the primitive data types in JavaScript?

1 Answers  


What is a module in javascript?

1 Answers  


Categories