Range in Javascript/jQuery?

Viewed 18248

Possible Duplicate:
Does JavaScript have a range() equivalent?

Is there a way to declare a range in Javascript/jQuery like we do in Python?

Something like this:

x = range(1,10)

x = [1,2,3,4,5,6,7,8,9]

Thanks.

3 Answers
Related