assignment (=)

JSoperatorassignment=

(operator) assigns value to variable / property / element, and returns the assigned value.

var redeclaration

  • is ignored and won't trigger any error, even in strict mode

  • ⭐️ the assignment (=) part is applied

👉 var redeclaration applied even in strict mode❗️

the assignment of a property always creates/sets a property in the original object, it never modifies objects in the prototype chain.

Last updated