JavaScript is required

Point out the error in the program
Media VietJack

A.
Error: Prototype declaration
B.
No error
C.
Error: return statement cannot be used with conditional operators
D.
None of above
Trả lời:

Đáp án đúng: C


The code has a syntax error in the ternary operator usage with the return statement. The correct way to use it is `return (condition) ? (value_if_true) : (value_if_false);`

Câu hỏi liên quan