Part One: List of images
A function that creates an HTML list of images based on an array of image paths
Invoke Not Using Required Array Argument
Invoking with a string, not an array.
👎 Error:
👎 Error:
Invoke With Arrays Containing Wrong Data Type
Invoking with an array of numbers, not string image names
(See Console for function error message).
Invoking with an array of booleans, not string image names
(See Console for function error message).
Invoking with a valid array of image names.
Invoking with an array of some image names and some junk
(See Console for function error messages).
Part Two: List of links
A function that creates an HTML list of links based on an array of web URLs
Trying with an array that contains booleans, and not string URLs…
Trying with a number, not an array…
Trying with a valid array of link URLs…
Trying with an array of link URLs and also junk…
Part Three: List of names
A function that creates an HTML list of names using <ul> or <ol>
Trying with invalid first parameter (string)
Trying with invalid second parameter ("div")
Trying with valid array (unordered list)
Trying with valid array (ordered list)