<!DOCTYPE html>
<html>
<body>
<p>Click the button to display the primitive value of a number.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var num = 15;
var n = num.valueOf()
document.getElementById("demo").innerHTML = n;
}
</script>
</body>
</html>