DEV Community

Discussion on: Differences between "let" and "const" keywords?

Collapse
 
jaloplo profile image
Jaime López

Hi Nuno,

Is it possible to assign null value to a const variable? And undefined?

Collapse
 
nunocpnp profile image
Nuno Pereira • Edited

null is a primitive values, so in theory you can but I believe there is no point in it because primitive values are immutable so there will be no way to mutate this value.