I am a bit confused over this. I created a function to attach a name and countries that the person is likely to belong to.
I attached the name to a div with id of ‘resultBox’ and the countries list to Ul. Despite that fact that the div comes first before the Ul, the countries ends up coming first before the name
Below is the image of the site, with the name appearing at the end, after the attached Li
Why is this so?