<html>

<head>

<body>

 

<p>My list contains: </p>

<p id='for_each_example'></p>

 

<script>

    var numbers = [56, 68, 3, 5]

    numbers.forEach(plus_two)

    

    function plus_two(item, index, array) {

     array[index] = item + 2

    }

    document.getElementById('for_each_example').innerHTML = numbers

    

</script>

</body>

</html>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.