Hey everyone
I just want to ask is this (js): if ( cond == true cond2 == true cond 3 == true cond4 == true ) correct ? or i can use only 2 statements for one if ? and should i use this or its better to use two if’s like this :
if ( cond == true cond2 == true ) {
if ( cond3 == true cond4 == true) Than do this !
}
i know that both will be executed but what is better option to choose?
thanks