Question: I have a pricing array

```
pricing = new Array();

pricing[1] = 35;
pricing[2] = 60;
pricing[3] = 84;
pricing[4] = 104;
pricing[5] = 120;
pricing[6] = 132;
pricing[7] = 140;
pricing[8] = 144;
pricing[9] = 153;
pricing[10] = 160;

```

Everything below 10 has a price, everything above 10 will have the same price as ten

It only goes to 20 so what i did originally was just repeat the price for 11 - 20. But thats wasteful, how can I tell me array that everything > 10 = 160

p.s my final version of this is condensed :)

Answer: 
```
var pricing = [], i;
pricing.push(35);
pricing.push(60);
pricing.push(84);
pricing.push(104);
pricing.push(120);
pricing.push(132);
pricing.push(140);
pricing.push(144);
pricing.push(153);
for (i = 0; i < 11; i++) {
    pricing.push(160);
}

```

I also made a [JSFiddle](http://jsfiddle.net/38Erq/1/) for this.

@CD was stating that the [push function](http://www.w3schools.com/jsref/jsref_push.asp) can take multiple items to append to the array. The code would look like this then:

```
var pricing = [], value = 160;
pricing.push(35);
pricing.push(60);
pricing.push(84);
pricing.push(104);
pricing.push(120);
pricing.push(132);
pricing.push(140);
pricing.push(144);
pricing.push(153);
pricing.push(value, value, value, value, value, value, value, value, value, value, value);

```
```
i=10;
while(i--) { pricing[i+10] = 160; }

```