DEV Community

Discussion on: 20 Killer JavaScript One Liners ☝️

Collapse
 
murtukov profile image
Timur Murtukov

Nah, these are not killer one-liners, just a beginner level. Besides that, writing something in 1 line doesn't mean good. It can sometimes harm readability, for example the first snippet is just a good example of how NOT to write your code.

And some of the examples are pretty useless. Why would you create a function for window.scrollTo(0, 0)? It's short enough on its own to use it directly.

In fact you just stolen all these snippets either from 30secondsofcode.org/ or from StackOverflow (I checked) and you have audacity to call yourself "superior". If you are really "an enthusiastic frontend developer" as you call yourself, than go and learn instead of posting useless articles.

Collapse
 
andrecastelo profile image
André Castelo

He's 14 though, give him a break.

Collapse
 
rahxuls profile image
Rahul

hahah seriously?

go do a background research on him, 14 and oversmart and fooling on internet.