Filter strings longer than a certain length
Refactor the following code: Instead of using a for loop to collect all strings longer than 4 characters in the array, rewrite it using
Array.filter()
.Premium
JavaScript
Console
Array.filter()
.