SyntaxFix
Write A Post
Hire A Developer
Questions
In simple words:
var x = (day == "yes") ? "Good Day!" : (day == "no") ? "Good Night!" : "";