Skip to end of banner
Go to start of banner

startsWith

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

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

  • No labels