Javascript – how to access the original nested list after modifying it in loop?
I am modifying the nested list and adding to an array now when I modify nested list it behaving very strangely, I am missing something very small but don't know what. class Square { constructor() { this.value = null; this.next…