Use return of a function in an if statement

You need to call your method to retrieve the result.

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

Leave a Comment