3 ms·
As mentioned in the article, you can declare a binding named `undefined` and assign a value to it. This shadows the base `undefined` binding (since it's NOT a k
by demurgos 2y ago
As mentioned in the article, you can declare a binding named `undefined` and assign a value to it. This shadows the base `undefined` binding (since it's NOT a keyword).
`void 0` ensures that you get the `undefined` value regardless of any shadowing that may be happening with the `undefined` binding.