Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
ES6 Interview Questions
→
ES6 Basic Interview Questions in ES6 Interview Questions
→
Name some string functions introduced in ES6.
1.
Name some string functions introduced in ES6.
Answer»
Methods
Description
startsWith
It determines if a string begins with the characters of a
GIVEN
string.
endsWith
It determines if a string ends with the characters of a given string.
includes
It will return
TRUE
if the given argument is present in the string.
repeat
It
CREATES
and returns a new string which contains the given number of copies of the string on which this method was called, concatenated
TOGETHER
.
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
What is the result of the spread operator array shown below?
How do you use Destructuring Assignment to swap variables?
Compare the ES5 and ES6 codes for object initialization and parsing returned objects.
Name some string functions introduced in ES6.
Name some array methods that were introduced in ES6.
What is Babel?
What is the reason behind adding Symbol to ES6?
What is the difference between for..of and for..in?
What is Bubbling and Capturing?
Which keyword can be used to deploy inheritance in ES6?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies