String.startsWith()

Description

Check whether or not a String starts with the characters of another String.

Syntax

myString.startsWith(myString2)

Parameter Values

  • myString, myString2: a variable of type String.

Return Values

  • true: If myString starts with the characters of myString2.
  • false: Otherwise.

See Also

Please note: These are affiliate links. If you buy the components through these links, We may get a commission at no extra cost to you. We appreciate it.