Last updated 4 years ago
Was this helpful?
Constants are block-scoped, much like variables defined using the let statement. The value of a constant cannot change through re-assignment, and it can't be redeclared.
const name1 = value1 [, name2 = value2 [, ... [, nameN = valueN]]];
const hello = 'hi'
const Title = <h1>Learn React</h1>