WeCodeAcademy
❮ startsWith()replace() ❯

endsWith()

Whether a string ends with text.

Group: String

Syntax

string.endsWith(text)

Example

Examplejavascript
Open in editor »

← All of JavaScript Reference