<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript IF with AND Operators</title>
</head>
<body>
<pre>
<script type="text/javascript">
var a = 10, b = 5;
if (a && b && a > b) // true && true && true
document.write("a is bigger than b");
else
document.write("a is smaller than b");
</script>
</pre>
</body>
</html>