Useful JS methods

  • splice()
    • ‘add’, remove and replace elements in array
  • unshift()
    • add element/s to the beginning of the array and return its length
  • map() 
    • create new array with elements created by calling provided function in calling array

Leave a Reply

Your email address will not be published. Required fields are marked *