Thursday, July 14, 2022
HomeSoftware developmentLegacy String Strategies for Producing HTML

Legacy String Strategies for Producing HTML

I am all the time 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 mentioned, I by some means 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 title:

"Whats up".large() // "<large>Whats up</large>"
"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.title") // "<a href="https://davidwalsh.title">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 right this moment. It is all the time enjoyable to see relics of the online previous although!

  • 5 Ways that CSS and JavaScript Interact That You May Not Know About
  • Page Visibility API

    One occasion that is all the time been missing throughout the doc is a sign for when the consumer is taking a look at a given tab, or one other tab. When does the consumer swap off our website to take a look at one thing else? When do they arrive again?

  • Redacted Font

    Again after I created shopper web sites, one of many many issues that pissed off me was the preliminary design handoff.  It could all the time go like this: Work exhausting to include shopper’s concepts, dream up superior design. Create mentioned design, utilizing Lorem Ipsum textual content Ship preliminary design idea to the shopper…

  • Input Incrementer and Decrementer with MooTools



Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments