DEV Community

Cover image for # Day 4 | How to resolve it?
Weijuer
Weijuer

Posted on

# Day 4 | How to resolve it?

The problem

How can I ensure the condition returns true and print 1.

var a = ?;
if(a == 1 && a == 2 && a == 3){
  console.log(1); // 1
}
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
j3ffjessie profile image
J3ffJessie

Please use the #help tag for help with coding problems.