WeCodeAcademy
❮ includes()endsWith() ❯

startsWith()

Whether a string starts with text.

Group: String

Syntax

string.startsWith(text)

Example

Examplejavascript
Open in editor »

← All of JavaScript Reference