JSFiddle - React, Tailwind, and code Playground
JavaScript
let input = [
2,
50,
40,
34,
34.454
];
let print = this.print || console.log;
let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);
for (var i = 1; i < input.length; i++) {
print((input[i] * 0.35).toFixed(2));
}