JSFiddle - React, Tailwind, and code Playground

JavaScript

//Ignoring this comment: 294 characters
var Person = (function() {
    var method = Person.prototype;

    function Person( age ) {
        this._age = age;
    }
    
    method.getAge = function() {
        return this._age;
    };
    
    method.setAge = function( age ) {
        this._age = age;
    };

    return Person;
})();

//Ignoring this comment: 239 characters
package business;

class Person {
    private int age;
    
    public Person( age ) {
        setAge(age);
    }
    
    public int getAge() {
        return age;
    }
    
    public void setAge( age ) {
        this.age = age;
    }
}