mardi 4 juillet 2017

how to check if function(s) have been executed?

I am new to javascript and i am facing a situation here

if (function1() && function2() == true){
   //do something here

 }
   else{

   //do something else

}

how do i ensure that function1() and function2() are executed and have true value ?

Aucun commentaire:

Enregistrer un commentaire