EcmaScript Tutorials
Let's Sharpen Your EcmaScript Skills
How to Empty an Array in JavaScript?
Since JavaScript does not have aArray.remove()method, we have to rely on different techniques to clear out an array. Different methods may be more efficient or useful in different situations, therefore, we have compiled a list of different ways to empty an array in JavaScript from which you can choose the best one that suits your needs.How to Create Multi-Line Strings in JavaScript?
In JavaScript there are a number of ways you can create multi-line strings (and/or a single string that spans multiple lines). In this article we review some of the most common, popular and effective techniques to do so.