Thanks for making this guide. I've been looking for reading like this.
Are you intending to demonstrate each LI having a different color?
I learned to achieve that by removing the call () from the function
d3.selectAll('li.country').style('color', randomColor)