charAt is a method to access string at a specific index position. it reveals the character at that position of the string.it is written as chaAt(index of that string). ex. var one = ‘we are one’; one.charAt(5); output is e.
one.charAt(3); output is a.
Because of a certain value and sometimes even putting an empty string can give true as a result when applying condition. But when it gives true and when it gives false.
If the value of a variable is set…
Know Few Things about React, JSX, and Many More