Use Bracket Notation to Find the Last Character in a String - Free Code Camp

preview_player
Показать описание
In today's tutorial we use bracket notation to find the last character in a string as part of the FreeCodeCamp's basic JavaScript tutorial. Enjoy!
Рекомендации по теме
Комментарии
Автор

Thanks Mr. Ian for the extra added content and the way I look it is that negatives go backwards and positives go forward. So a -2 added to the lastName.length will get me a C and -3 will gets me the A.

zken