loading
open in
index.js
1
2
3
4
5
6
7
8
9
const arr = [];

arr.push(() => console.log('Hello world 1'))
arr.push(() => console.log('Hello world 2'))
arr.push(() => console.log('Hello world 3'))

console.log(arr)

arr.forEach(greet => greet())
node v9.7.1 linux/amd64