JSFiddle - React, Tailwind, and code Playground
JavaScript
var firstNumb = +prompt("Enter first figure from 0 to1", "" );
var secondNumb = +prompt("Enter second figure from 0 to1", "" );
var summ = firstNumb + secondNumb;
alert (summ.toFixed (1));