Sign in

This article is a transcript of my free youtube series about basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hello and welcome back to the next episode my fellow devs! We are going to slice and dice today. The method of the day is slice(), not to be mistaken for the other slice() method. Haha! Like anybody could confuse them, right?

The slice() method extracts parts of a string and returns the extracted parts in a new string. The first parameter is the mandatory and specifies start position for…

This article is a transcript of my free youtube series about basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hello my fellow developers! We are going to do a little bit of searching in today’s episode. But this time, we will use only regular expressions.

The search() method searches a string for a specified value, and returns the position of the match. The search value can be a string or a regular expression. If string is provided as an input parameter, it will be automatically converted to a regular…

This article is a transcript of my free youtube series about basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hello my fellow newbs! Today, we are going to have a little dejavú. We are going to talk about replaceAll() method, which is almost identical to replace() method. With a few exceptions of course. And you will find those in today’s episode.

The replaceAll() method returns a new string with all matches of a pattern replaced by a replacement. The pattern is the first parameter and it can be either…

This article is a transcript of my free youtube series about basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hello devs! The method of the day can be simple to use, but at the same time, it can be a real pain in the back. We will be replacing stuff today. Meet method replace(). Let’s dive right in.

The replace() method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern is the first parameter and it can be either Regular…

This article is a transcript of my free youtube series about basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hello my fellow newbs. Jacob here, with yet another String method. Today’s method is one of the simple ones. I like these straightforward methods, because you can just use them. No shenanigans, no catches. Of course, unless you are explicitly looking for them, which we of course are. So let’s get to it.

The repeat() method returns a new string which contains the specified number of copies of the string…

This article is a transcript of my free youtube series about basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hello to all the great dev newbs out there! This episode of the String methods will be raw. I meant it will be about method raw(). Haha…gotcha!

The raw() method is a static method just like methods fromCharCode() and fromCodePoint().

We invoke it by typing “String.raw” and we provide it with the parameters.

This method allows us to get the raw string form of template literals. In other words, we…

This article is a transcript of my free youtube series about basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hello to all the fellow newbs! Another slacker method is ahead of us and today it is going to be padStart(). Let’s dig into it, so we can go for an ice cream or something.

The padStart() method keeps padding the current string with the given string until the resulting string reaches target length. In the case of this method, padding is applied from the beginning of the current string.

This article is a transcript of my free youtube series about basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hello to all the loyal dev newbs! We have some tough methods behind us and now it is time to relax a bit with some good old simple and straightforward methods for making space for our strings. Meet padEnd().

The padEnd() method keeps padding the current string with the given string until the resulting string reaches target length. …

This article is a transcript of my free youtube series about basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hi to all of my fellow developers! We are going to mess with diacritic marks once again. Today’s daily special is method normalize() that tinkers with different ways of representing the same character. Let’s begin!

The normalize() method returns the Unicode Normalization Form of the string.

The only parameter we need to provide is a form. Form can have one of these 4 values:

  • NFC (Canonical Decomposition, followed by Canonical…

This article is a transcript of my free youtube series about basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

The matchAll() method returns an iterator of all results matching a string against a regular expression, including capturing groups.

We need to provide a regular expression to find matches as a mandatory parameter of the method. This has to have a global flag “g”, otherwise we get a TypeError thrown.

The result of the matchAll() method is an iterator of matches found.

Each of the matches is represented as an…

Jakub Korch

Web enthusiast, programmer, husband and a father. Wannabe entrepreneur. You name it.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store