Split Array by Specified Length

# Introduction In this challenge, we will be implementing a function in JavaScript to split an array into multiple parts of a specified length. The function should sort the array in ascending order and then split it based on the value taken from the input box with id sliceNum. The split data shall be stored in a new array and returned as a two-dimensional array. The goal is to successfully split the array by the specified length and achieve the desired result.

|60 : 00

Click the virtual machine below to start practicing