2018-10-16 21:32:40 +05:30

434 B

title
title
Use Bracket Notation to Find the First Character in a String

Use Bracket Notation to Find the First Character in a String

Remember that the first character of a string is at the zero-th position. For example:

var str = "Hello";
var letter = str[0]; // This equals "H"