Sometimes I found it's lagging when it comes to arrays. Is there any other way to remove elements?
Yes—pop() only removes the last element of an array. There are several other ways to remove values in JavaScript arrays depending on what you need.
Didn't get the answer. Contact people of Talent-Javascript directly by clicking here