Now using variable how we can access the length of the variable; let’s check the below
Now using length property we can compare the string length.let check it below
Here in the string character has position numbered index starts from “ 0”
Since the index starts from zero ,but length value will always be one more then the last index.
Finding specific character using charAt() method .