JSFiddle - React, Tailwind, and code Playground

JavaScript

var Application = function(){
    this.local = {};  
};
Application.prototype.Value = function(){
    if (arguments.length) {
        this.local.result = arguments[0];
    }else{
        return this.local.result;
    } 
};

var app = new Application();
app.Value(6);
alert(app.Value());