ReferenceNQE LanguageStandard LibraryprefixOn this pageprefixprefix(str: String, n: Number) : String Returns first n characters of string s. For example, prefix("abcdef", 3) is "abc", prefix("abcdef", 0) is "" (empty string), and prefix("abcdef", 10) is "abcdef". See also Types String Number