Strict Mode in JavaScript | Fundamentals | JavaScript

preview_player
Показать описание
A strict mode in JavaScript is a special mode which makes it easier to write “secure code”. In simple words, strict mode changes previously accepted "bad syntax" into real errors.

In order to activate strict mode, we can write a string ‘use strict’ in the beginning of the script.

In this way, we activated strict mode for the entire script. This statement has to be the very first statement in the script. If we have any code before this, then strict mode will not be activated. Comments are allowed because JavaScript will just ignore them but no code.
Рекомендации по теме
Комментарии
Автор

Requesting, if you are starting js series . please take all real-time scenario

mohammedabdulaziz
Автор

sir kindly upload the JS course in one playlist with proper sequential course content of JS which include OOP as well.

muhammadkashanfayyaz
Автор

Sir ...Please make JavaScript separate playlist please ....please...in one playlist

alimranali
Автор

Sir have you ended the angular series?

mohammedabdulaziz
Автор

DEAR SIR, I STARTED THIS SECTION TODAY, BUT IT SIMPLY DOES NOT WORK IN EDGE. I HAVE NOT TRIED IN CHROME YET AND I DON'T KNOW WHY THE STRICT MODE DOES NOT WORK AT ALL! COULD IT BE, THAT IT IS NOT USED ANY LONGER IN JS? THANKS IN ADVANCE FOR YOUR KIND ANSWER!

hannabouttros
join shbcf.ru