Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The array, grades, is and should be interchangeable. The code ,when finished, should add 10 to all values in the array. What code should do

The array, grades, is and should be interchangeable.

The code ,when finished, should add 10 to all values in the array.

What code should do in "English"

Step one: pretty much reads the array.

Step two: Add 10 to each value.

Step three: Replace each value with the new value.

image text in transcribed

Instructions Tests 1 function curveGrades(grades) { // YOUR CODE BELOW HERE // Create a function called curveGrades that increments each value in an Object by 10 3 for (i = 0; i += 12 10; After the loop return grades 13 14 Example Function Calls 15 16 var myGrades = { 17 spanish: 75, 18 biology: 90, 19 history: 88 20 } 21 22 curveGrades (myGrades); 23 | * --\ notunns Submit Run 24 Auto-Run OFF Reset

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

More Books

Students also viewed these Databases questions

Question

=+privacy expectations of its users?

Answered: 1 week ago