1n1 = !!true // !!truthy returns true
2n2 = !!{} // !!truthy returns true: any object is truthy...
3n3 = !!(new Boolean(false)) // ...even Boolean objects with a false .valueOf()!
4n4 = !!false // !!falsy returns false
5n5 = !!"" // !!falsy returns false
6n6 = !!Boolean(false) // !!falsy returns false
1<!DOCTYPE html>
2<html>
3<body>
4
5<h2>JavaScript Numbers</h2>
6
7<p>Numbers can be written with or without decimals:</p>
8
9<p id="demo"></p>
10
11<script>
12var x = 3.14;
13var y = 3;
14document.getElementById("demo").innerHTML = x + "<br>" + y;
15</script>
16
17</body>
18</html>
19