CamelThunder CamelThunder
  • 16-03-2021
  • Computers and Technology
contestada

Which statement below returns 'soccer'?
sports = [2: football', 3:'soccer', 4:'volleyball', 5:'softball'}

• sports.find(soccer')
• sports[3]
• sports(3)
• sports.get(2)

Respuesta :

tonb
tonb tonb
  • 16-03-2021

Answer:

The answer is the second option.

sports = {2: 'football', 3:'soccer', 4:'volleyball', 5:'softball'};

console.log(sports[3]);

will output:

soccer

Explanation:

There were several syntax errors in the code (assuming it is javascript):

- Text strings must be enclosed in single or double quotes.

- sports is an object, not an array, so it should have { } and not [ ]

Answer Link

Otras preguntas

Chapter 48 1. Who was the tall man and why was he at Camp Green Lake? 2. What was the purpose of Ms. Morengo’s visit to Camp Green Lake? 3. Do you think that St
what is the author's purpose in The White Umbrella please help
how do you determine the gradiant of an graph
The very busy Freshman class is selling tickets for an upcoming field hockey game. The class sells 20 more student tickets than adult tickets. The adult tickets
Joyce paid $110.00 for an item at the store that was 45 percent off the original price. What was the original price?
max and some friends shared the cost of a meal. The meal cost $51 and each person contributes $17. How many people share the cost meal?
What historical reality about the California Gold Rush is represented in this fictional paragraph
Who could be a citizen in Ancient Rome
Chris and his best friend Jason have just opened a specialty beer bar in Phoenix, Arizona. They know the bottom-line profit they want to turn their first month,
1. What is the circumference of the circle below? 11 cm