scrimba
Learn Basic JavaScript
Use Bracket Notation to Find the Last Character in a String
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Use Bracket Notation to Find the Last Character in a String
AboutCommentsNotes
Use Bracket Notation to Find the Last Character in a String
Expand for more info
index.js
run
preview
console
// Example
var firstName = "Ada";
var lastLetterOfFirstName = firstName[firstName.length - 1];

// Setup
var lastName = "Lovelace";

// Only change code below this line.
var lastLetterOfLastName = lastName;

Console
index.html
-0:54