Practice
Learn
← Quit
0 / 0 correct
JS / TypeScript
Easy
1 of 23
What happens here?
const user = { name: 'Ada' }; user.name = 'Grace';
A
TypeError: assignment to constant
B
Compile error in plain JavaScript
C
It works: const prevents reassigning the binding, not mutating the object
D
The change is silently ignored