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

mr mohr wants to build a rectangular patio the patio will measure 13.5 feet by 43 feet what is the area of the patio if he uses tiles that are 12 inches square
Instead of going to school, what setting does pasty's prefer?
is milk a mixture, compound,or element
How did Billie Jo's mother die in Out of the Dust
Which point lies on the graph of 3x+2y=7x-5? A.(-1,4.5) B.(1,0.5) C.(1,7) D.(3,3.5)
why is complementary base pairing important in DNA structure?
how do landforms affect life quality?
What was the Muslim ruler Osman known for? A. introducing a new way of waging war and then conquering all of Persia B. rising from birth among tribal nomads to
What weakness hampered the government of the articles of confederation
PLEASE HELP ME THANKSS Solve |2x + 13| < 15.