I am spending my time developing myself in coding
This is how I code this challenge ! Can you give me advice on how I can develop my coding?
I am spending my time developing myself in coding
This is how I code this challenge ! Can you give me advice on how I can develop my coding?
While implementing your own loops for max() and array construction, it is much more readable to use built-in methods:
const bestScore = Math.max(...jumpScores);
const calculated = jumpScores.map(score =>
Math.ceil((bestScore - score) * 1.5)
);
return calculated
Its even more optimal performance wise in some cases.
if you want people to evaluate your code, please post the code, not a screenshot
We have blurred this solution (with [spoiler][/spoiler] tags) so that users who have not completed this challenge can read the discussion in this thread without giving away the solution.
Okay, this one is noted first time to posting anything here
thank you! for bringing up this method.