r/loljs • • Mar 23 '16

An 11 line npm package called left-pad with only 10 stars on github was unpublished...it broke some of the most important packages on all of npm.

Thumbnail
np.reddit.com
51 Upvotes

r/loljs • • Sep 20 '16

good parts of javascript in perspective

Post image
42 Upvotes

r/loljs • • Feb 01 '15

We all love consistency

Post image
42 Upvotes

r/loljs • • Jan 27 '16

"Want to speed up `npm install`? Disable the progress bar for a massive speed boost"

Thumbnail
twitter.com
39 Upvotes

r/loljs • • Jun 21 '18

[] == ![]

37 Upvotes

r/loljs • • Oct 06 '16

HTMLMediaElement.canPlayType() returns one of ["probably", "maybe", ""]

Thumbnail
developer.mozilla.org
37 Upvotes

r/loljs • • Nov 15 '17

Astonished blogger finds that sending huge amounts of JavaScript code instead of HTML causes slow, useless web pages

Thumbnail
medium.com
36 Upvotes

r/loljs • • Oct 20 '16

Github is down? 1 + 2 = 404

Thumbnail
twitter.com
33 Upvotes

r/loljs • • Jun 10 '17

Should acronyms be spelled all caps or camel case? XMLHttpRequest: Why not both?

32 Upvotes

r/loljs • • Oct 11 '15

NodeJS: stripping comments can speed up your code

Thumbnail
medium.com
31 Upvotes

r/loljs • • May 29 '18

NPM stops working with proxies, returns "418 I'm a teapot"

Thumbnail
github.com
30 Upvotes

r/loljs • • Sep 13 '19

Why ['1', '7', '11'].map(parseInt) returns [1, NaN, 3] in Javascript

Thumbnail
medium.com
27 Upvotes

r/loljs • • Sep 04 '17

Java is a bad introductory programming language, so let's replace it with an appalling one

Thumbnail
thenextweb.com
25 Upvotes

r/loljs • • Sep 09 '15

Doing a javascript online test, this was probably the hardest question.

Post image
25 Upvotes

r/loljs • • Feb 18 '16

reducing comment length (and presumably variable length) gives 50% speedup

Thumbnail
top.fse.guru
24 Upvotes

r/loljs • • Apr 30 '21

(new Date()).getYear() === 121

23 Upvotes

r/loljs • • Jun 14 '17

Javascript: An Honest Preview

Thumbnail
youtube.com
23 Upvotes

r/loljs • • Jun 21 '16

If the first argument to `setTimeout` is a string, it will be implicitly `eval`'ed [x-post /r/ProgrammerTIL]

Thumbnail
reddit.com
23 Upvotes

r/loljs • • Sep 03 '15

null >= 0, null <= 0, null != 0

23 Upvotes
null >= 0   // true
null <= 0   // true
null == 0   // false
null != 0   // true
null > 0   // false
null < 0   // false

r/loljs • • Feb 23 '16

The Node.js Event Loop is a Damn Mess

Thumbnail sheldonkreger.com
21 Upvotes

r/loljs • • Aug 26 '14

Node.js leadership

Post image
21 Upvotes

r/loljs • • Jun 01 '21

NaN is iterable

19 Upvotes
> Array.from(undefined)
< VM528:1 Uncaught TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at Function.from (<anonymous>)
    at <anonymous>:1:7
(anonymous) @ VM528:1


> Array.from(null)
< VM596:1 Uncaught TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))
    at Function.from (<anonymous>)
    at <anonymous>:1:7
(anonymous) @ VM596:1


> Array.from(NaN)
< []

r/loljs • • Jun 26 '22

Number properties are silently lost/discarded/undefined

Post image
18 Upvotes

r/loljs • • Aug 03 '17

$1.4m in Ether lost partly because javascript has no integers

Thumbnail
twitter.com
18 Upvotes

r/loljs • • Oct 08 '14

The by-design purpose of JavaScript was to make the monkey dance when you moused over it.

Thumbnail
programmers.stackexchange.com
18 Upvotes