function display1(option)
{
return(option ? "true" : "false");
}
bool ans=true;
console.log(display1(ans));
true is right answer
1 Like
print true in this case
1 Like