Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if javascript function is true

function example(){
  return true;
}

if(example()){ 
  console.log('hello');
}else{
  console.log('bye');
}

// result: 'hello'
 
PREVIOUS NEXT
Tagged: #check #javascript #function #true
ADD COMMENT
Topic
Name
5+5 =