JSFiddle - React, Tailwind, and code Playground
JavaScript
var str = "Hello";
var the_char=str.charAt(0);
alert(the_char)
if(the_char === " "){
alert("first char of the query is space");
return;
}
var str = "Hello";
var the_char=str.charAt(0);
alert(the_char)
if(the_char === " "){
alert("first char of the query is space");
return;
}