JSFiddle - React, Tailwind, and code Playground

JavaScript

const player1 = {
    name: "Ashley",
    color: "purple",
    isTurn: true,
    isTrue: true, // Do you need this?
    play: function() {
        if (this.isTrue) {
            console.log(this.name + " is now playing");
            return this.name + " is now playing";
        }
    }
};

player1.play();