JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <body>
        <div id='right' class='button'>Right is Right</div>
        <div id='left' class='button'>Left is Wrong</div>
    </body>
</html>

CSS

body
{
    font-family:helvetica;
}

.button
{
    padding:10px;
    cursor:pointer;
    border:1px solid #ccc;
    background : #eee;
    width:100px;
    text-align:center;
    margin:5px;
}

JavaScript

$(function(){
    
    function right(){
        return {
            OK : true
        };  
    }
    
    function left(){
         return {
             OK : true
         }; 
    }
    
    $('#right').click(function(){
        var result = right();
        alert(result.OK);
    });
    
    $('#left').click(function(){
        var result = left();
        alert(result.OK);
    });
});