lundi 5 mars 2018

What is the execution order of if condition in JS

Given:

if(arr[0]!=null && arr[0].value.toString()!="") {
    //do something
}

Does an if conditional statement return false immediately after the first statement fails? Or does it check the second condition regardless?

Cheers, Gavin :)

Aucun commentaire:

Enregistrer un commentaire