In this challenge we continue exploring bracket notation and learn a handy trick to target the last character of a string. Subtracting 1 from the length of a string variable and setting the result inside bracket notations will target that lest character. For example to target the last character of a string var myCode = "code", you can target the "e" character like this myCode[myCode.length - 1]
Sur cette page du site, vous pouvez voir la vidéo en ligne Use Bracket Notation to Find the Last Character in a String, freeCodeCamp Basic Javascript durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur We Will Code 11 mars 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 2,383 fois et il a aimé 12 téléspectateurs. Bon visionnage!