ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 69 - Certified JavaScript Developer I discussion

Report
Export

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)
Answers
A.
Boolean(var1 && var2)
B.
var1 && var2
Answers
B.
var1 && var2
C.
var1.toBoolean() && var2toBoolean()
Answers
C.
var1.toBoolean() && var2toBoolean()
D.
Boolean(var1) && Boolean(var2)
Answers
D.
Boolean(var1) && Boolean(var2)
Suggested answer: A, D
asked 23/09/2024
Kaniamuthan K
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first