What are two valid ways to return the logical AND of the two expressions and ensure it is data type Boolean?

Given two expressions var1 and var2.

What are two valid ways to return the logical AND of the two expressions and ensure it is data type Boolean? Choose 2 answers:
A . Boolean(var1 && var2)
B . var1 && var2
C . var1.toBoolean() && var2toBoolean()
D . Boolean(var1) && Boolean(var2)

Answer: A,D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments