Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (9.5k points)

Implementation of JavaScript for &&: 

if (A && B) { code goes here}

Can anyone tell me how to implement an OR in a JavaScript if statement? 

1 Answer

0 votes
by (19.7k points)

 You can use the logical “OR” operator, like below: 

  if (A || B)

Interested in Java? Check out this Java Certification by Intellipaat.   

Browse Categories

...