JSFiddle - React, Tailwind, and code Playground

by skilesare

JavaScript

function log(ourText) {
    document.write("<p>" + ourText + "</p>")
};


var gameShow = function(){
    this.expected = ' expected';
    }
    
gameShow.prototype.expectTheUnexpected = function(){
    return 'not' + this.expected;
    }
        
bigBrother = new gameShow();
log(bigBrother.expectTheUnexpected());