Use return of a function in an if statement

You need to call your method to retrieve the result.

if(xy() === true){
  //stuff
}

Browse More Popular Posts

Leave a Comment