How to Empty an Array in JavaScript | CodeTrail