Ask coding questions

← Back to all posts
there is a bug in my mario game says destructuring assignmnet target...how can i remove it?
ShivangiSundriy (1)

there is no output of my game...due to bug...i dont even understand what that error means?

Answered by Coder100 (18872) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (18872)
  1. don't forget to add semicolons ... they are important!
  2. the error most likely comes from (1), because this is what js actually thinks you are trying to do:
let ['a', 'b'] = ["...", "..."];

its called destructuring, and you use variables not strings.

ShivangiSundriy (1)

@Coder100 yes thank u so much i found so many errors regarding semicolons and braces only.I made a improved mario game again.