Please check this video: https://www.youtube.com/watch?v=wv7pvH1O5Ho
he is trying to swap items in the DOM with drag and drop functionality what i don't understand is how did changes on an array reflected on the DOM and how did he use appendChild() on an array? i really need to understand this thanks.
full code here: https://github.com/bradtraversy/vanillawebprojects/blob/master/sortable-list/script.js