how to make function array in javascript code example Example: javascript array const arr = [1, 2, 3];