js fill array with value code example Example: array js fill let filledArray = new Array(10).fill({'hello':'goodbye'});