array empty strings code example Example: array empty strings var n = 1000; Array(n).join(".").split("."); // now contains n empty strings.