JSFiddle - React, Tailwind, and code Playground

HTML

<pre>
Type Script:
class ProcessorX {
    ProcessX(count: number): string {
        var value = '';
        value += count.toString();
        value += count.toString();
        count++;
        return value;
    }
}

JS:
var ProcessorX = (function () {
    function ProcessorX() { }
    ProcessorX.prototype.ProcessX = function (count) {
        var value = '';
        value += count.toString();
        value += count.toString();
        count++;
        return value;
    };
    return ProcessorX;
})();

JS Min:
var ProcessorX = function () { function n() { } return n.prototype.ProcessX = function (n) { var t = ""; return t += n.toString(), t += n.toString(), n++, t }, n }()
</pre>

JavaScript

var ProcessorX = function () { function n() { } return n.prototype.ProcessX = function (n) { var t = ""; return t += n.toString(), t += n.toString(), n++, t }, n }()

var x = 3;
var xx = new ProcessorX().ProcessX(x);
alert('x:' + x + '   xx:' + xx);

function process(count) {
    var value = "";
    value += count; //1. Two consecutive += statements
    value += count;
    count++; //2. Some other statement
    return value; //3. Return
}
var y = 3;
var yy = process(y);
alert('y:' + y + '   yy:' + yy);