How to use charAt() Method In Javascript
Example:
Javascript
// Accessing character at third position let str = "w3wiki" ; console.log(str.charAt(2)); |
Output
e
String in JavaScript
String is used to representing the sequence of characters. They are made up of a list of characters, which is essentially just an “array of characters”. It can hold the data and manipulate the data which can be represented in the text form. We can perform different operations on strings like checking their length, also concatenate them by using +=, +, string operators.