All in one place to develop new skills in web development. You can find posts by categories, interview questions, quizzes, and a lot more and in a simplified manner.

Copyright @2019-2020 © by Vinod Kumar. All rights reserved.

Sunday, May 17, 2020

Javascript: Array Methods


Let's look into the complete list of methods available on the array.

  1. Length
  2. IndexOf (Back -negative, no start index
  3. Includes 
  4. LastIndexOf
  5. Search
  6. Slice - Negative (if index value is not included) 
  7. substr - Length
  8. SubString
  9. repeat (ES6)
  10. left/start Trim
  11. right/end Trim
  12. toString
  13. replace
  14. split
  15. concat
  16. charAt
  17. charCodeAt
  18. fromCharCode
  19. touppercase
  20. toLocaleUpperCase
  21. toLowerCase
  22. toLocaleLowerCase

Difference between 

1. includes and indexOf - boolean and number
2. Index of and search - Noregex and regex

0 comments:

Post a Comment

Please post your comments here. Will help others.