Answers for "call if else statement in function in js"

34

if else js

if (condition) {
	// statement
} else if(condition){
	// statement
}else{
  // statement
}
Posted by: Guest on January-18-2022
0

Example of an IF..ELSE Statement

public class Test {

   public static void main(String args[]) {
      int x = 30;

      if( x < 20 ) {
         System.out.print("This is if statement");
      }else {
         System.out.print("This is else statement");
      }
   }
}
Posted by: Guest on August-31-2021

Code answers related to "call if else statement in function in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language