.fill javscript code example Example: fill javascript const a = new Array(100).fill("test"); console.log(a);