JavaScript processes functions, and so on, from the left, so you can daisy chain functions together like:
document.getElementById("list").appendChild( listOfHumanRefuges );Code language: CSS (css)JavaScript will take the document object and run the getElementById on it. When getElementById returns an element, it’ll then run appendChild on that element. If this is still confusing or makes less sense to you, there’s no need to worry about it. Structure your code whatever way makes sense to you and whatever way will make sense to whomever looks at it later (including future you)