TypeOf keyword is used to get type of provided variable. So it will return number because value of val is 5.
<!DOCTYPE html>
<html>
<head>
<title>Welcome to LearnKode - A code learning platform</title>
</head>
<body>
<button onclick="operatorFunction()">Click to find the type of variable.</button>
<script>
function operatorFunction()
{
var val=5;
alert(typeof val);
}
</script>
</body>
</html>