Describe the bug
The challenge passes if you hardcode three array values into your function.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- use the following code
const resultDisplayArray = [
`<li class="text-warning">${arr[0]}</li>`,
`<li class="text-warning">${arr[1]}</li>`,
`<li class="text-warning">${arr[2]}</li>`
];
- The tests pass when they shouldn't
Expected behavior
This is problematic because the given function will not work with arrays that have more or less than 3 values.