Q. Which of the following is the correct output for the following JavaScript code:
Code:function display1(option)
{
return(option ? "true" : "false");
}
bool ans=true;
console.log(display1(ans));
β
Correct Answer: (B)
True