A
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));
{
return(option ? "true" : "false");
}
bool ans=true;
console.log(display1(ans));
- Correct Answer - Option(B)
- Views: 32
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.