dimanche 20 septembre 2020

How to declare simple variable in .js file for Ember

For some reason this does not work in the js file of my Ember app:

var i = 0;
while (i < 20) {
    arr.push(i++);
}

I also tried @var but for the 'less than' sign, it says ", expected". I am confused.




Aucun commentaire:

Enregistrer un commentaire