Retired

Sugar Rush (retired)

Description:

Fruit is delicious, but it is even better with chocolate! Your goal is to create a way to take each item in the array 'fruit' and add chocolate in front of each item.

  1. Create a way to take each item in the array fruit and add the word chocolate in front of each item. For example, 'strawberries' would say 'chocolate strawberries' in the new array. Do not change the fruit array.
  2. Make your new array by using a function named 'chocolate.'
  3. To pass this kata, the test will run the function chocolate with the parameters of the array fruit and a random position from the array fruit. For example: chocolate(fruit[2]) should come out as 'chocolate blueberries.'
Fundamentals
Arrays
Data Types
Puzzles
Games

Stats:

CreatedOct 17, 2016
Warriors Trained56
Total Skips0
Total Code Submissions167
Total Times Completed45
JavaScript Completions45
Total Stars1
% of votes with a positive feedback rating45% of 21
Total "Very Satisfied" Votes6
Total "Somewhat Satisfied" Votes7
Total "Not Satisfied" Votes8
Total Rank Assessments21
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • kfurness Avatar
  • matt c Avatar
Ad