<!DOCTYPE html>
<title>My Example</title>
<p id="msg"></p>
<p>The <code>Math.pow()</code> function returns a number representing the given base taken to the power of the given exponent.</p>
<script>
document.getElementById("msg").innerHTML = Math.pow(2, 4);
</script>