x
1
2
<html>
3
<body>
4
5
<p> Unary Operators </p>
6
7
<script>
8
let x = "Infinity"; /* Infinity= Infinity */
9
let y = +x;
10
document.write("<b>" + typeof(x) +"<b><br>");
11
document.write("<b>" + y +"<b><br>");
12
document.write("<b>" + typeof(y) +"<b><br>");
13
</script>
14
15
</body>
16
</html>