<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<script>
var a = 20;
if (a>10) {
console.log("a>10")
}
if (a>11) {
console.log("a>11")
}
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<script>
var a = 20;
if (a>10) {
console.log("a>10")
}else if (a>11) {
console.log("a>11")
}
</script>
</body>
</html>