r/javascript • • Jun 30 '17

Days Since Last JavaScript Framework

https://dayssincelastjavascriptframework.com/
74 Upvotes

20 comments sorted by

View all comments

3

u/[deleted] Jun 30 '17

was expecting this to be more than just <strong>0</strong> :/

10

u/freebit Jun 30 '17
<span style="font-weight:700;">0</span>

There ya go! :)

14

u/[deleted] Jun 30 '17

needs more web scale:

const span = document.createElement('span');
span.style.fontWeight = '700';
span.textContent = '0';
document.body.insertBefore(span, document.body.firstChild);

2

u/danielhep Jun 30 '17

Maybe someone should write a library to help with that? I mean four lines of code for such a simple thing... come on.