// making all uppercase city.toUpperCase(); //removing spaces and making all lowercase city = city.trim().toLowerCase(); //capitalizing the first letter cityCapitalized = city.charAt(0).toUpperCase() + city.slice(1);
// making all uppercase city.toUpperCase(); //removing spaces and making all lowercase city = city.trim().toLowerCase(); //capitalizing the first letter cityCapitalized = city.charAt(0).toUpperCase() + city.slice(1);