Is JavaScript’s array.clear() not a function? [duplicate] March 24, 2023 by Tarik Nope, it’s not. But drawnDivs.length = 0 should work.