Right now this function console.logs .1 .2 .3 .4 .5 .6 .7 .8 .9 1
I am looking for a way to reverse this, so it logs 1 .9 .8. .7 .6 .5 .4 .3 .2 .1
instead. You can see my attempt, which is commented.
function blah(size) {
for (var x = 1; x <= size; x++) {
var alpha = (1 / size) * x;
//var alpha = (1 / x) * (1 / size)
console.log(alpha);
}
}
blah(10);