how to get first character of string react js?
Hi 👋, Welcome To Infinitbility! ❤️ To get the first character of the string to react js, just use charAt(0) it will return the first char of a string. For the sample let’s see how can we use charAt(0) on a string. // 👇️ i console.log("infinitbility".charAt(0)); Today, I’m going to show you How do I get the first character of a string in to react js, as above mentioned here, I’m going to use the charAt(0) so we can first alphabet of the string....