# Pre-request script for loop

**URL:** <https://community.postman.com/t/pre-request-script-for-loop/28360>\
**Category:** Help Hub\
**Created:** [October 2, 2021, 4:12pm UTC](https://community.postman.com/t/pre-request-script-for-loop/28360 "2021-10-02T16:12:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lingkau](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@lingkau](https://community.postman.com/u/lingkau)\
**Post date:** [October 2, 2021, 4:12pm UTC](https://community.postman.com/t/pre-request-script-for-loop/28360/1 "2021-10-02T16:12:06Z")

</div>

_My question_:  
Is it possible to fill an array in the pre-request script?  
It seems to end in an endless loop till postman kicks me out.

_I’ve already tried_:  
let item = ;  
item.push(value);

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 22, 2025, 3:48pm UTC](https://community.postman.com/t/pre-request-script-for-loop/28360/2 "2025-04-22T15:48:20Z")

</div>

Closed on April 22, 2025, 3:48pm UTC


