FlashcardIntermediate

Excess Property Checks

Why extra properties error on object literals.

Question

Why does assigning an object literal with an extra property cause an error?

Click to reveal answer