While playing around in the Chrome DevTools, I noticed a string method I had never seen before: .bold(). Curiosity got the better of me, and I gave...
For further actions, you may consider blocking this person and/or reporting abuse
The String object has so many methods: developer.mozilla.org/en-US/docs/W....
Maybe it would be better to emphasize "these methods are all officially deprecated" and write it in bold...
I appreciate the feedback, and you're absolutely right. I've gone ahead and edited in a more prominent disclaimer. Thank you!
OKAY what!
I've been with JS for many years and didn't had a single clue about this, how GREAT! Now I think of it, if we had functions for numbers why wouldn't they exist for strings too, right? haha π
Thank you so much, Ben!
I think you might find this interesting too if you don't already know it. Let's say you have an element in your page with the id of "foobar" -- well then there will be a global variable named "foobar" that points to this element.
I'm going to use one of these today in my code :D :D
π±
Wow I just found out those tricks.