function escape escape(string: string): string DeprecatedA legacy feature for browser compatibility Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence. Parameters string: string A string value Return Type string