var booleanValue = true;
function someFunction(){
if(booleanValue === true){
return "something";
}
}
function example(){
return true;
}
if(example()){
console.log('hello');
}else{
console.log('bye');
}
// result: 'hello'
return condition ? value : otherValue;