Q
What does !true evaluate to?

Answer & Solution

Answer: Option B
Solution:
The logical NOT operator (!) inverts the value of a boolean. !true evaluates to false.
Related Questions on Average

How does JavaScript evaluate !(true && !false)?

A). 1

B). 0

C). undefined

D). null

What will be the output of !false in JavaScript?

A). 1

B). 0

C). undefined

D). null

What does false

A).

B). (true && false) evaluate to?

C). 1

D). 0

What is the result of true

A).

B). false in JavaScript?

C). 1

D). 0

What is the result of false

A).

B). !(false

C).

D). true) in JavaScript?

What does true && false evaluate to?

A). 1

B). 0

C). undefined

D). null

What does true

A).

B). true evaluate to?

C). 1

D). 0

What will be the output of !(true

A).

B). false) in JavaScript?

C). 1

D). 0

What is the result of true && true in JavaScript?

A). 1

B). 0

C). undefined

D). null

What does !(true && !true) evaluate to?

A). 1

B). 0

C). undefined

D). null