Some Javascript Methods

1. charAt()

There are two ways to use charAt() method. You can find a letter from a word by using the charAt() method.

2. concat()

Javascript array concat() method is used to add 2 strings in one line. If you declare 2 arrays and then you want to add these 2 arrays in one line then you should use the array string concat method. Now, I show you how to use the concat method.

3. indexOf()

The indexOf method is used to find the letter index from a word. If you want to know a letter index number from a word you can use the indexOf method.indexOf method says you where from have whitespace and where from have a letter from sentence or word. I show you how you use the indexOf method below.

4. slice()

The slice method is used to separate a text from a sentence. when we give index numbers by arguments in a sentence then it shows that 1 or more index number inner text. Now, let's see how to use the slice method.

5. split()

The split methods use for device strings and make an array. If you want to divide a string word by word or letter by letter or full sentence in the array you should use the split method. Now, let’s how to use the split method.

6. toLowerCase()

The toLowerCase method uses to make a small letter in a sentence. If you want to make a sentence or word small letter then you should use the toLowerCase method. Now, I show how to use this method below.

7. toUpperCase()

The toUpperCase method uses to make a sentence or word capital. If you want to make a sentence or word capital then you should use the toUpperCase method. Let’s see how to use it.

8. parseFloat()

The parseFloat method uses to makes a string number to a floating number. If you give arguments in the function to a string number its convert it a number. Let’s see How it use.

9. parseInt()

The parseInt method uses to make a decimal number to integer number. If you want to make a decimal number to integer number then you should use the parseInt method. Let’s see how it work.

10. map()

The map method is used to get a single item from an array. If you declare an array and get to item one by one from the array then you should use the map method. let’s see how it use.

Thanks for reading my blog.

Front end developer