let sentence = "I Love Foood Code Too Playing Much";
let smallWords = sentence
.split(" ")
.filter(function (ele) {
return ele.length <= 4;
})
.join(" ");
console.log(smallWords);
let ignoreNumbers = "Elz123er4o";
let ign = ignoreNumbers
.split("")
.filter(function (ele) {
return isNaN(parseInt(ele));
})
.join("");
console.log(ign);
let mix = "A13BS2ZX";
let mixedContent = mix
.split("")
.filter(function (ele) {
return !isNaN(parseInt(ele));
})
.map(function (ele) {
return ele * ele;
})
.join("");
console.log(mixedContent);