padStart and padEnd in JavaScript | ECMAScript 2017 New Features
The 'padStart' and 'padEnd' methods in JavaScript are useful for filling extra space in your Strings. This is useful if you'd like to set a length for each item in a string-filled array in a universal way. For example, if you'd like to convert '1' to '01', it's easy with padStart!
In this video I take you through both the String.prototype.padStart and String.prototype.padEnd methods - with a few examples!
For your reference, check this out:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart
Follow me on Twitter @dcode!
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Видео padStart and padEnd in JavaScript | ECMAScript 2017 New Features канала dcode
In this video I take you through both the String.prototype.padStart and String.prototype.padEnd methods - with a few examples!
For your reference, check this out:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart
Follow me on Twitter @dcode!
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Видео padStart and padEnd in JavaScript | ECMAScript 2017 New Features канала dcode
code coding programming tutorial introduction beginner walkthrough guide software development simple easy into english with example examples javascript ecmascript ecmascript2016 ecmascript2017 es5 es6 es7 new features string strings array fill padding trim methods method function functions callback numbers pad padStart padEnd dollars format formatting number constant const node nodejs npm package type types
Комментарии отсутствуют
Информация о видео
15 марта 2018 г. 14:57:31
00:04:53
Другие видео канала