Using New(ish) JavaScript String Methods: trim, startsWith, endsWith, includes, and repeat



In the past, you had to create your own functions for simple actions like trim or startsWith, but recently JavaScript has been adding additional methods to the string object to allow you to use trim, startsWith, endsWith, includes, and even repeat. In this video, we look at each method in turn, including how you would accomplish it before JavaScript added them to the string object.

JavaScript is the assembly language of the web, but that hasn’t prevented it from being the punchline of jokes for the last decade or so because of some of its weird quirks, and the various ways in which browsers have implemented it. In this video tutorial series, we’re going to go over modern JavaScript, and why, if you hate JavaScript, you shouldn’t anymore.

If you like this video and want to go deeper, check out https://codepunk.io, or subscribe to our newsletter at https://botsandbeer.com

Interested in building chatbots in JavaScript and TypeScript? Check out my book: https://www.amazon.com/Building-Chatbots-TypeScript-Microsoft-Framework/dp/0578513498/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1559317442&sr=8-1

To stay in touch, following me on Twitter at https://twitter.com/szul.

You can also follow Bill: https://twitter.com/neurothustra.

Don’t forget to subscribe to this channel for updates:
https://www.youtube.com/c/codepunk?sub_confirmation=1

source

Leave a Reply

Your email address will not be published. Required fields are marked *