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