Question: The following program has a problem. What is it?
- The condition in the ternary is using the assignment operator.
- You can't define a variable without initializing it.
- You can't use a ternary in the right-hand side of an assignment operator.
- The code is using the deprecated var keyword.
Answer: The correct answer of the above question is Option A:The condition in the ternary is using the assignment operator.