JavaScript is required

Cho đoạn code sau, kết quả sẽ là:

A.

true true true true

B.

true false true true

C.

true true false true

D.

true true false false

Trả lời:

Đáp án đúng: C


The code snippet uses comparison and logical operators in Java. The '==' operator checks for equality, '!=' checks for inequality, '>' checks if the left operand is greater than the right operand, '&&' is the logical AND operator, '||' is the logical OR operator, and '!' is the logical NOT operator. The code will evaluate these expressions and print the boolean results (true or false) to the console.

Tổng hợp 500 câu hỏi trắc nghiệm Javascript có đáp án đầy đủ nhằm giúp các bạn dễ dàng ôn tập lại toàn bộ các kiến thức.


50 câu hỏi 60 phút

Câu hỏi liên quan