JSFiddle - React, Tailwind, and code Playground

by charlescarver

HTML

<input/>
<button>go</button>

JavaScript

$("button").click(function() {

    var keywords = ["yolo", "bieber", "justin bieber", "bieber fever", "moscow", "swag", "swaq", "cole"];
    // Cole one is irrelevant to all but one
    
    if (keywords.indexOf($("input").val().toLowerCase()) != -1) {
        alert("This isn't Twitter, Brickhouse.");
    } else {
        alert("NO");
    }
});