JSFiddle - React, Tailwind, and code Playground

by eget teteete

JavaScript

function Order(status) {
    this.status = status;
 
    this.showStatus = () => {
        console.log(this.status);
    }
}

var order = new Order(console.log = () => console.info("1function") );

console.log(order.showStatus());