I have an array containing colour names and i want to filter out the colours containing the letter o, for example, if i have an array named colours
var colours = ["orange", "red", "yellow", "green", "violet"]
if i want to filter out the colours with the letter orange included, the result would be
“orange”, “yellow”, “violet”.
What is the code to replicate this filtering process?