I’m getting this error and I don’t understand why I’m using the normal “if” syntax "if (condition) {
do something
}
Yet, the console is giving me this error and won’t even let me check or ask for help becouse the “check you code” does nothing.
// running tests
SyntaxError: unknown: Support for the experimental syntax ‘optionalChainingAssign’ isn’t currently enabled (147:7):
145 |
146 | const deleteSong = (id) => {
147 | if (userData?.currentSong?.id = id) {
| ^
148 |
149 | }