<body>
Call a function for each element, & lt;/p>
<script>
Var numbers1=[45, 4, 9, 16, 25];
Var numbers2=numbers1. ForEach (myFunction);
Document. The getElementById (" demo "). The innerHTML=numbers2;
The function myFunction (value) {
The return value.
}
</script>