10 Methods Of JavaScript

1. How to Split a String into an Array in JS

  • Split() method is used to split a string separately. String is split between each character. If you want to split a string with multiple separators then you have to pass regex expressions into a split method. That’s how we work with split method in JavaScript. The string.split() method does not change the original string.

2. String.toLowerCase() Method

3. String.toUpperCase() Method

4. string.replace() Method

5. String.trim() Method

6. String.trimStart() Method

7. String.trimEnd() Method

8. math.floor() Method

9. array.push() Method

10. array.pop() Method

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store