- Instant help with your JavaScript coding problems
forEach((element) => { /* … */ })
forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;
const items = [1, 2, 3];
items.forEach((item) => {
console.log(item * 2);
});