const arr = ["some", "random", "words"] arr.forEach((word) => { // takes callback and returns undefined console.log(word) }) /* will print: some random words */