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

Stats:

CreatedJan 5, 2018
PublishedFeb 5, 2018
Warriors Trained7753
Total Skips133
Total Code Submissions32042
Total Times Completed5185
JavaScript Completions3019
Python Completions2279
CoffeeScript Completions19
Total Stars51
% of votes with a positive feedback rating88% of 889
Total "Very Satisfied" Votes721
Total "Somewhat Satisfied" Votes131
Total "Not Satisfied" Votes37
Total Rank Assessments5
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • Chrono79 Avatar
  • raulbc777 Avatar
  • dramforever Avatar
  • KayleighWasTaken Avatar
Ad