<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript Other Operators</title>
<script>
function performOtherOperations() {
var a = 5;
var b = "hello";
var result = (a > 2) ? "a is greater than 2" : "a is not greater than 2";
document.getElementById("ternary").innerHTML = result;
document.getElementById("typeofA").innerHTML = "typeof a: " + (typeof a);
document.getElementById("typeofB").innerHTML = "typeof b: " + (typeof b);
}
</script>
</head>
<body onload="performOtherOperations()">
<h1>JavaScript Other Operators</h1>
<p id="ternary"></p>
<p id="typeofA"></p>
<p id="typeofB"></p>
</body>
</html>