Decoding variable behavior

Report a typo

Consider

/* sample variable declaration */
let a = 'hello'; 

and

/* sample const variable declaration */
const b = 'world'; 

As part of a multi-line program, how will the JavaScript runtime treat these statements? And if we try to reassign a value to b, what will happen?

Select one option from the list
___

Create a free account to access the full topic