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