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 in all probability should not use however have existed endlessly. Let’s have a look!
These legacy string strategies take a fundamental string of textual content and wrap it in a HTML tag of the identical identify:
"Good day".large() // "<large>Good day</large>" "Good day".blink() // "<blink>Good day</blink>" "Good day".daring() // "<b>Good day</b>" "Good day".italics() // "<i>Good day</i>" "Good day".hyperlink("https://davidwalsh.identify") // "<a href="https://davidwalsh.identify">Good day</a>"
Native prototypes do not normally take away strategies and for good cause — they’ll break web sites! I am shocked I did not learn about these strategies earlier than at the moment. It is at all times enjoyable to see relics of the net previous although!
5 HTML5 APIs You Didn’t Know Existed
While you say or learn “HTML5”, you half count on unique dancers and unicorns to stroll into the room to the tune of “I am Attractive and I Know It.” Are you able to blame us although? We watched the basic APIs stagnate for thus lengthy {that a} fundamental function…
CSS Gradients
With CSS border-radius, I confirmed you ways CSS can bridge the hole between design and growth by including rounded corners to parts. CSS gradients are one other step in that course. Now that CSS gradients are supported in Web Explorer 8+, Firefox, Safari, and Chrome…
TextboxList for MooTools and jQuery by Guillermo Rauch
I will be sincere with you: I nonetheless have not found out if I like my MooTools teammate Guillermo Rauch. He is obtained lots stacked up in opposition to him. He is from Argentina so I get IM’ed about 10 occasions a day about how nice Lionel…
Source_link