var fruits = ["apple", "mango", "watermelon", "orange"]; var data = fruits.find(element => element.length > 6 && element.length % 2 !== 0); console.log(data)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter