Files
RobinNixon 53063593e3 Final
Final
2020-12-10 13:51:13 +00:00

11 lines
230 B
HTML

<script>
pets = ["Cat", "Dog", "Rabbit", "Hamster"]
pets.forEach(output)
function output(element, index, array)
{
document.write("Element at index " + index + " has the value " +
element + "<br>")
}
</script>