<html>
<body>
<h2>JavaScript Arrays</h2>
<p>The Array.map() method creates a new array from the results of calling a function for every element.</p>
<p id="demo"></p>
<script>
const numbers = [4, 9, 16, 25];
document.getElementById("demo").innerHTML = numbers.map(Math.sqrt);
</script>
</body>
</html>