complete-javascript-course
complete-javascript-course copied to clipboard
244 Welcome to Callback Hell at 9:30 - neighbours array destructuring and CSS
Well, as an example you work with Portugal. The country just has one neighbour. However, if we take Ukraine there are seven neighbours all of them are passed in an array, we shouldn't apply destructuring assignment. Instead we should apply forEach method on the array.
The second thing is styles. We need to add width: 1000px to a .container and flex-wrap: wrap; to a .countries. Otherwise if a browser window is half narrowed some countries could not appear in the result.
I am in beginning of the topics sir I am yet not goes in the topic of array