I wanted if the arr is true alert true if not alert false. Where I actually making mistake I checked my code at jslint but I found only alert was used before it was defined. Thank you
var arr = [1,23,4,5];
if(arr.isArray()===-1){
alert(' false ');
}else{
alert(' true ');
}