JSFiddle - React, Tailwind, and code Playground

JavaScript

$(document).ready(function() {
    var x = prompt(x);
    x = x/10 - x%10 / 10;
    alert(x);
});