Im trying to use this equation to make a progress bar but when ever i try to divide a number with a percent it just gives me a error.
The equation:
/* jshint esversion: 6 */ let progress = (this.assetsComplete*100%)/((this.assets.length - this.exceptionLength)*40);
The only problem is when i do the division it gives an error is there a way to fix it?
i have tried adding extra parentheses but that didn't work.
Just take it without some percent calculation.
let progress = this.assetsComplete * 40 / (this.assets.length - this.exceptionLength);
The remainder operator % returns a rest of a dvision of a number by another number.
%
2.1m questions
2.1m answers
60 comments
57.0k users