7 kyu
Working with arrays I (and why your code fails in some katas)
3,019 of 5,185Chrono79
Description:
In this kata the function returns an array/list of numbers without its last element. The function is already written for you and the basic tests pass, but random tests fail. Your task is to figure out why and fix it.
Good luck!
Hint: watch out for side effects.
Some good reading: MDN Docs about arrays
Fundamentals
Arrays
Refactoring
Similar Kata:
Stats:
Created | Jan 5, 2018 |
Published | Feb 5, 2018 |
Warriors Trained | 7753 |
Total Skips | 133 |
Total Code Submissions | 32042 |
Total Times Completed | 5185 |
JavaScript Completions | 3019 |
Python Completions | 2279 |
CoffeeScript Completions | 19 |
Total Stars | 51 |
% of votes with a positive feedback rating | 88% of 889 |
Total "Very Satisfied" Votes | 721 |
Total "Somewhat Satisfied" Votes | 131 |
Total "Not Satisfied" Votes | 37 |
Total Rank Assessments | 5 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 7 kyu |