Retired
Sugar Rush (retired)
45kfurness
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.
- 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.
- Make your new array by using a function named 'chocolate.'
- 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:
Created | Oct 17, 2016 |
Warriors Trained | 56 |
Total Skips | 0 |
Total Code Submissions | 167 |
Total Times Completed | 45 |
JavaScript Completions | 45 |
Total Stars | 1 |
% of votes with a positive feedback rating | 45% of 21 |
Total "Very Satisfied" Votes | 6 |
Total "Somewhat Satisfied" Votes | 7 |
Total "Not Satisfied" Votes | 8 |
Total Rank Assessments | 21 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |