about | help | code help+videos | done | prefs |
Write a method that returns a new array based on 'nums' but with each element increased by 'add'. Look at the test data for examples. practice2023_10_20_increaseAll([6, 8, 10, 12], -6) → [0, 2, 4, 6] practice2023_10_20_increaseAll([10, 100, 1000], -5) → [5, 95, 995] practice2023_10_20_increaseAll([7], 1) → [8] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 215
Copyright Nick Parlante 2017 - privacy