re: How to clear array in javascript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Setting the length to 0 hurts my brain, but it works!
 

I know, right. In my entire career, length has always been seen as a read-only property. Being able to set it seems like we're eventually able to lie about the true content of the array :-P

code of conduct - report abuse