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
Recommended Answers
Jump to PostWhat like cloning the original array and messing with it while leaving the original intact?
//edit
Ok just re-read
Not sure if I understand. Do you mean like using the console and watching values of variables as you step through a routine?
Jump to PostWhat do you mean by "comment within the script"?
Do you mean print to console?
console.log();
Jump to PostAh, so he means create a html comment (
<!-- blah -->
)
Jump to PostOK, is this solved?
All 14 Replies

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

diafol
Airshow 416 WiFi Lounge Lizard Team Colleague

diafol
Siberian 13 Junior Poster

diafol
Siberian 13 Junior Poster
Airshow 416 WiFi Lounge Lizard Team Colleague

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.