...

/

Accessing Characters inside a String

Accessing Characters inside a String

Learn how to access and modify the characters inside a string.

We'll cover the following...

The bracket notation

The bracket notation, also used with arrays, can provide access to an arbitrary character in a string:

Press + to interact
let digits = '0123456789';
console.log(digits[4]);

The

...