View all questions & answers for the JavaScript-Developer-I exam
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:
Boolean(var1 && var2)
var1 && var2
var1.toBoolean() && var2toBoolean()
Boolean(var1) && Boolean(var2)
Submit