Quiz · Annotations and type inference · lesson 9 of 9Quiz — const and letWhat is the difference between const and let in TypeScript?[A]const makes the whole value unchangeable: writing a property of a const object or calling push on a const array is a compile error, so anything that will change inside the value has to be declared with let from the start.[B]const forbids giving the name a new value, let allows it; both are block-scoped. const does not freeze the value: a const object's properties still change and push works on a const array—only the name is fixed.[C]const and let differ only in scope: const is function-scoped, while let is block-scoped. Both let you give the name a new value at any time, so the choice is only about where in the code the name is visible.[D]const freezes everything inside the value, so its properties and array elements can never change, yet the name itself may still get a new value later; let allows changes to both the name and everything inside it.← Backconst and mutable objectsNext module →03 · Primitive and special types