I have a function like this
function makeIJKFromId(id) {
return id.split("_").splice(1);
}
and this statement in timetable.js gives error(Only in Chromium Browser)
[i, j, k] = makeIJKFromId(e.target.id);
Error : Uncaught ReferenceError: Invalid left-hand side in assignment
Screenshot attached :error screenshot
then when i have made change like this
[i, j, k](makeIJKFromId(e.target.id));
it worked.
But I don't know why it worked? Isn't function destructuring allowed in Chromium?