TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Ecmascript 6 (Es6 String Functions)
Kamal Rawat
Jul 27
2016
Code
742
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
.includes
---------
const
fullname =
'kamal singh rawat'
;
const
substring =
'kamal'
;
console.log(fullname.includes(substring));
// true
.repeat
--------
'*'
.repeat(3);
// '***'
Template Literal
--------------
var
firstname =
'csharp'
;
var
lname =
'corner'
;
ES5
console.log(
'Event name is'
+ firstname + lname);
ES6
console.log(`Event name is ${firstname} ${lname}`);
javascript
ES6
ES6 string functions
Ecmascript6 string