Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Make all countries in the following array follow the same formatting: // The first letter should be upper case, the rest lower case. Print
1. Make all countries in the following array follow the same formatting: // The first letter should be upper case, the rest lower case. Print the // result to the console.
var countries = ["AustraliA", "greece", "PERU", "ChInA"];
// 2. Get every second and third letter from each country and concatenate them. // Print the results to the console.
// 3. In the sentence below replace 'dart' with 'arrow' by using the indexOf // and slice functions.
java script
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started