I am working on a program where I have created an array and now want to display all the words that contain more than 4 letters.
Check out my code snippet below:
function oppC(){
var ord = ["Apple", "Two", "Yesterday", "mother", "lol", "car", "computer"];
for(var i = 4; i < ord.length;i++ ) {
pEl.innerHTML = ord;
}
}