Problem

Return true if s starts with the given prefix.

Examples

  • startsWith("Maker216", "Maker") -> true
  • startsWith("Java", "Go") -> false
Compile and test (Ctrl+Enter)