my professor gave me an assessment where i need to return all words from an array in a new array longer than given length
lets say i have a array
array = ["han", "hans", "hanssss", "hansssss", "hansss", "hansssssssss"];
and with function getAllLongtextItems i want to return all words longer than given length
function getAllLongTextItems(array, maxLength) {
}
how can i do this ?