You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If countries.length is 10 or 2, then countries[0] will be displayed as if it is the only country in the array. Change line 11 to
"} else if ((countries.length > 1 || countries.length === 0) {"
will avoid this, since countries.length >10 is handled in the previous if statement. The extra condition of "&& countries.length <10" is not needed.
The text was updated successfully, but these errors were encountered:
If countries.length is 10 or 2, then countries[0] will be displayed as if it is the only country in the array. Change line 11 to
"} else if ((countries.length > 1 || countries.length === 0) {"
will avoid this, since countries.length >10 is handled in the previous if statement. The extra condition of "&& countries.length <10" is not needed.
The text was updated successfully, but these errors were encountered: