startsWith

Description

Returns "true" if str1 starts with str2.

Parameters

Return Type

Boolean (true/false)

Example

if(startsWith("Fram, the polar bear", "Fram")) { /* code block will execute */ }

See also