how to add default value with array element in javascript code example Example: js create array with default value Array(24).fill(0)