I'm taking it easy today because tonight I'm going to see a Talking Heads cover band do all of Stop Making Sense, and tomorrow is a queer goth club night, so, really, my days are filled with nothing but my nights are taking off. Except that's not entirely true. My days are filled with JavaScript. Such excitement! JavaScript String MethodsThese are things you can do to make strings do things. So I'm going to go through all the examples making up new and ridiculous examples. String Lengthlength returns the length of the string. So if I say let filler = "This string is exactly 42 characters long."; let fillerLength = filler.length; I get 42 as the answer. Yep. (I thought it'd be 43, but it turns out that when Sublime Text shows me which column I'm in, it's looking at the character I'll type next, not the one I've just finished.) Extracting String CharacterscharAt() returns the character as a specified position. let filler = "This string is exactly 42 characters long."; let fillerChar =…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.