Final
Final
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user