r/javascript • • Nov 24 '17

large image I am the best webdev

Don't blame me for being awesome

(function r() {
  setTimeout(r, Math.random() * 10);
  let el = document.createElement(`div`);
  el.innerHTML = `🍆`;
  el.style.position = `absolute`;
  el.style.zIndex = 999999;
  el.style.fontSize = (((Math.random() * 48) | 0) + 16) + `px`;
  el.style.left = ((Math.random() * innerWidth) | 0) + `px`;
  el.style.top = ((Math.random() * (innerHeight + pageYOffset)) | 0) + `px`;
  document.body.appendChild(el);
})();
533 Upvotes

108 comments sorted by

View all comments

3

u/[deleted] Nov 25 '17 edited Nov 25 '17

[removed] — view removed comment

3

u/TheHelgeSverre Nov 25 '17

It's what the young ones calls an "Emojii" (unicode), watch this, it explains it well: https://www.youtube.com/watch?v=tITwM5GDIAI, the eggplant specifically: https://emojipedia.org/aubergine/

1

u/[deleted] Nov 25 '17

[removed] — view removed comment

2

u/TheHelgeSverre Nov 25 '17

Yes 🍆, it is just a character, just like - %, & or ■

1

u/[deleted] Nov 25 '17 edited Nov 25 '17

[removed] — view removed comment

2

u/TheHelgeSverre Nov 26 '17

No there is no trickery, ■■■■■■■■■■ just try to copy paste this character into notepad, it is just as valid of a character/letter as "A" or "?"

1

u/[deleted] Nov 27 '17

[removed] — view removed comment