How to Truncate a String in JavaScript // Day 6 of 365 Days of Coding // JavaScript Challenge

preview_player
Показать описание
Day 6 of 365 days of coding! How to Truncate a String in JavaScript

Challenge: Create a function that accepts a string and a number. The function must return the given string truncated to the maximum length (number that was passed in) followed by "...". If the string is shorter than the passed maximum length return the passed string.

******************************************************
ℹ Help Links ℹ

******************************************************

******************************************************
******************************************************
DISCLAIMER: Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you!

outro audio by: LiQWYD
Рекомендации по теме
Комментарии
Автор

Awesome video, keep up the amazing work!

ComputerScienceSimplified
Автор

Thx. I did the same way, but used .slice()

Editing and visuals got better, keep it up🚀

pavlikovinc
visit shbcf.ru