JSFiddle - React, Tailwind, and code Playground

JavaScript

let input = [

    '0.1',
    '0.25',

];

let print = this.print || console.log;
let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);


inputOne = +gets();
inputTwo = +gets();


let sum = inputOne + inputTwo;

let output = sum.toFixed(2);

print(output);