JSFiddle - React, Tailwind, and code Playground

JavaScript

var a=10.3;
var b=2.3;
alert(Math.round((a+b) * 10) / 10);