Does Chrome prohibit changing the value for undefined? I just tried:
undefined
undefined = 3
But when upon request undefinedhe gives meundefined
PS. I will not redefine it in my code, I just wonder why it does not work.
It is right. Most modern browsers prevent value changes undefined.
From Mozilla Docs :
In modern browsers (JavaScript 1.8.5 / Firefox 4+), undefined is unconfigurable, not writable in properties by the ECMAScript 5 specification. Even if it is not, avoid overriding it.
, undefined , .
Source: https://habr.com/ru/post/1605679/More articles:Problem using ArgumentAttribute constructor in WPF - c #Does a value type variable change the LIFO type of the stack - variablesAndroid APP protected text so that no one can copy it - androidAttach a shortcut to the corner? - pythonHide / show li elements based on the selected category filter - javascriptDoes memsql support Full Outer Join? - outer-joinПросмотр проблемы, вызывающей второй фрагмент из FirstFragment - androidHow to configure yii2 with phpstorm - yii2disable radio button originally javascript - javascriptWhy are two / four threads even slower than a single thread making the inner_product vector in C ++ 11 multi-threaded colling? - c ++All Articles