Javascript

Slice() method is available for Strings and Arrays in Javascript. It has two optional parameters which we can use in different combinations to get interesting results. It does not make modifications to the original array/string. We can use negative indexes with the slice() method which makes it even more useful. The method returns a shallow… continue reading
Javascript has a number of methods related to arrays which allow programmers to perform various array operations.  There are four methods which are particularly used for adding and removing elements to and from an array. They are: push(), pop(), shift() and unshift(). For an experienced as well as new programmers, its likely to sometimes get… continue reading