I am at all times actually excited to see new strategies on JavaScript primitives. These additions are acknowledgement that the language must evolve and that we’re doing thrilling new issues. That being stated, I someway simply found some legacy String strategies that you simply most likely should not use however have existed perpetually. Let’s have a look!
These legacy string strategies take a primary string of textual content and wrap it in a HTML tag of the identical identify:
"Whats up".huge() // "<huge>Whats up</huge>" "Whats up".blink() // "<blink>Whats up</blink>" "Whats up".daring() // "<b>Whats up</b>" "Whats up".italics() // "<i>Whats up</i>" "Whats up".hyperlink("https://davidwalsh.identify") // "<a href="https://davidwalsh.identify">Whats up</a>"
Native prototypes do not often take away strategies and for good motive — they’ll break web sites! I am shocked I did not find out about these strategies earlier than immediately. It is at all times enjoyable to see relics of the net previous although!
7 Important JavaScript Features
I bear in mind the early days of JavaScript the place you wanted a easy perform for almost every part as a result of the browser distributors applied options in another way, and never simply edge options, primary options, like
addEventListener
andattachEvent
. Occasions have modified however there are nonetheless a couple of features every developer ought to…
Instagram For MooTools
In the event you’re nonetheless rocking an iPhone and fancy taking a photograph now and again, you would be loopy to not be utilizing an app referred to as Instagram. With Instagram you are taking the pictures simply as you’ll together with your native iPhone digicam app, however Instagram…
Utilizing MooTools to Instruct Google Analytics to Observe Outbound Hyperlinks
Google Analytics offers a wealth of details about who’s coming to your web site. One of the vital statistics the service offers is the referrer statistic — you’ve got gotta know who’s sending individuals to your web site, proper? What about the place you ship others although?