array can be maximum how many size code example Example: maximum number of an array var arr = [1, 2, 3]; var max = Math.max(...arr);