JSFiddle - React, Tailwind, and code Playground

by DenimTornado

JavaScript

var arr = [ 4, "Pete", 8, "John" ];
var $spans = $("span");
var b = "John";
var c = jQuery.inArray(b, arr);
console.log (c);
if (c == "-1") {
    alert (false);
} 
else 
{
    alert(true);
};