JSFiddle - React, Tailwind, and code Playground
JavaScript
let input = [
'10'
];
let print = this.print || console.log;
let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);
let inputOne = +gets();
if (inputOne < Infinity) {
var second = (inputOne - 2) * 4;
}
if (inputOne = 2) {
var first = inputOne * 10;
}
let output = first + second;
print(output);