scrimba
Learn Basic JavaScript
Use Bracket Notation to Find the First 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 First Character in a String
AboutCommentsNotes
Use Bracket Notation to Find the First Character in a String
Expand for more info
index.js
run
preview
console
// Example
var firstLetterOfFirstName = "";
var firstName = "Ada";

firstLetterOfFirstName = firstName[0];

// Setup
var firstLetterOfLastName = "";
var lastName = "Lovelace";

// Only change code below this line
firstLetterOfLastName = lastName;

Console
index.html
-1:23