I think it's because you are using const in the string.
In the expression, you are returning an expression. You cannot return a const. Just pass in a simple expression like 2+5 or something like a ternary operator
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm running into an issue where I keep getting,
Unexpected token 'const'
I think it's because you are using
const
in the string.In the expression, you are returning an expression. You cannot return a
const
. Just pass in a simple expression like2+5
or something like a ternary operator