Can you write within the script the new order of an array as a comment without the script actually using it ? Suppose I have an array of 10 items, then I push and unshift more items in the array, for myself or anyone else viewing the code I want to show the list in the new order, can this be done ?
Siberian 13 Junior Poster
![Member Avatar for diafol](https://static.daniweb.com/connect/images/anonymous.webp)
diafol
Troy III 272 Posting Pro
Siberian 13 Junior Poster
Airshow 416 WiFi Lounge Lizard Team Colleague
gon1387 22 Newbie Poster
Siberian 13 Junior Poster
![Member Avatar for diafol](https://static.daniweb.com/connect/images/anonymous.webp)
diafol
Airshow 416 WiFi Lounge Lizard Team Colleague
![Member Avatar for diafol](https://static.daniweb.com/connect/images/anonymous.webp)
diafol
Siberian 13 Junior Poster
![Member Avatar for diafol](https://static.daniweb.com/connect/images/anonymous.webp)
diafol
Siberian 13 Junior Poster
Airshow 416 WiFi Lounge Lizard Team Colleague
![Member Avatar for diafol](https://static.daniweb.com/connect/images/anonymous.webp)
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.