If you want a 9-length array:
Array.apply(null, {length: 9}).map(function() {return 0;})
If you want a X-length array:
Array.apply(null, {length: X}).map(function() {return 0;})
If you have an array and want to rewrite its values:
var arr=[54,53,6,7,88,76]
arr=arr.map(function() {return 0;})
You can fill the array with anything you want, just by changing the value at return inside the function inside .map:
Array.apply(null, {length: 9}).map(function() {return "a string";})
Array.apply(null, {length: 9}).map(function() {return Math.random();})
Array.apply(null, {length: 9}).map(function() {return NaN;})
Array.apply(null, {length: 9}).map(function() {return null;})
Array.apply(null, {length: 9}).map(function() {return true;})
Array.apply(null, {length: 9}).map(function() {return;})
The last one will fill the array with undefined