You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Different arcade halls award different score points.
94
-
To celebrate the best arcade player in town, a player's score needs to be normalized so scores from different arcade halls become comparable.
95
-
96
-
Write a function `normalizeScore`.
97
-
To practice your object skills, instead of two parameters this function should accept one object as a parameter.
98
-
That object contains a key `score` with the value being a player's score (a number).
99
-
There is also a second key `normalizeFunction` that has a function as its value.
100
-
This function takes a score as an argument and returns the corrected score.
101
-
102
-
Your function `normalizeScore` should return the normalized score that you get after applying the normalization function to the score that was passed in.
0 commit comments