MCQs > IT & Programming > JavaScript > Which has the correct syntax of a ternary operation?

JavaScript MCQs

Which has the correct syntax of a ternary operation?

Answer

Correct Answer: var x = y === true ? "true" : "false";

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it