1.

Name some string functions introduced in ES6.

Answer»
MethodsDescription
startsWithIt determines if a string begins with the characters of a GIVEN string.
endsWithIt determines if a string ends with the characters of a given string.
includesIt will return TRUE if the given argument is present in the string.
repeatIt CREATES and returns a new string which contains the given number of copies of the string on which this method was called, concatenated TOGETHER.


Discussion

No Comment Found