showing results for - "7 2 bracket notation c2 b6"
Darlene
08 Feb 2016
1/*An expression of the form someString[i] gives the character at index i.
2This program prints out the initials of the person's name.*/
3
4let jsCreator = "Brendan Eich";
5let firstInitial = jsCreator[0];
6let lastInitial = jsCreator[8];
7
8let outputStr = "JavaScript was created by somebody with initials " +
9   firstInitial + "." +
10   lastInitial + ".";
11
12console.log(outputStr);
similar questions
queries leading to this page
7 2 bracket notation c2 b6