views:

150

answers:

1

I am getting a javascript error

"missing = in destructuring declaration"

What could be the problem?

+2  A: 

This is not a standard javascript error. It's coming from your editor. You must be using the js2-mode (Javascript mode) for your Emacs editor. This could be a missing equals in for loop. Example:

for(i 0; i < arr.length;i++); /* missing = in destructuring declaration */

However, without looking at your code, we can only guess.

ichiban