for (var i = 0, len = this.selectedVariants.length; i < len; i++) {
let oldId = this.selectedVariants[i];
$('variant-result-' + oldId).removeClass('selected');
this.selectedVariants.splice(i, 1);
}
being line 159 : let oldId = this.selectedVariants[i];
I get the following error:
file.js:line 164:column 10:missing ; before statement
let oldId = this.selectedVariants[i];
the error dissapears when let is removed/switched to var.
With this code:
being line 159 : let oldId = this.selectedVariants[i];
I get the following error:
the error dissapears when let is removed/switched to var.