JS Logical Operators

 
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>JavaScript</title>
    <script>
        /* Logical And Operator */
        var age = 18;
       
        if (age >= 18 && age <= 21) {
            document.write("Yes you are eligible.");
        } 
		document.write("<br><br>");

        /* Logical OR Operator */
        var a = 10;
        var b = 15;
        if (a >= 8 || b <= 15) {
            document.write("Yes you are eligible.");
        }
		document.write("<br><br>");
		
        /* Logical Not Operator */
        var x = 30;

        console.log(!x >= 12);
    </script>
</head>
<body>
</body>
</html>