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