Usually I do this:
var tagSymbols = Object.freeze([
'!',
'+',
'@'
]);
But then I know there is const from Babel (?).
const tagSymbols = Object.freeze([
'!',
'+',
'@'
]);
Both return the same error:
Syntax error: Unexpected token (4:6)
2 |
3 | class GeneralToDoListInput extends Component {
> 4 | var tagSymbols = Object.freeze([
| ^
5 | '!',
6 | '+',
7 | '@'
Syntax error: Unexpected token (5:8)
3 | class GeneralToDoListInput extends Component {
4 |
> 5 | const tagSymbols = Object.freeze([
| ^
6 | '!',
7 | '+',
8 | '@'