menu

JavaScript Operators

JavaScript Operators - Important Points


21. What is the result of 3 > 2 in JavaScript?

A. 1

B. 0

C. 1

D. 0

Discuss Work Space

Answer: option a

Explanation:

The > operator is the greater than operator. It returns true if its left operand is greater than its right operand.

22. What is the result of 2 < 3 in JavaScript?

A. 1

B. 0

C. 1

D. 0

Discuss Work Space

Answer: option a

Explanation:

The < operator is the less than operator. It returns true if its left operand is less than its right operand.

23. What is the result of 2 >= 2 in JavaScript?

A. 1

B. 0

C. 1

D. 0

Discuss Work Space

Answer: option a

Explanation:

The >= operator is the greater than or equal to operator. It returns true if its left operand is greater than or equal to its right operand.

24. What is the result of 2 <= 2 in JavaScript?

A. 1

B. 0

C. 1

D. 0

Discuss Work Space

Answer: option a

Explanation:

The <= operator is the less than or equal to operator. It returns true if its left operand is less than or equal to its right operand.

25. What is the result of 2 == "2" in JavaScript?

A. 1

B. 0

C. null

D. undefined

Discuss Work Space

Answer: option a

Explanation:

The == operator is the equality operator. It returns true if its operands are equal, after converting them to a common data type if necessary.


Subscribe for Latest Career Trends
Subscribe Now
Use AI and ChatGPT for Career Guidance

Unlock Your Future

Join Now
Worried for Placements in 2024?

Join FAST TRACK Course

Join Now
Supercharge Your SUCCESS

Join All in One Placement Mock Tests-2024

Join Now