r/javascript • • Mar 18 '19

What's your favorite, most useful javascript one-liner?

385 Upvotes

422 comments sorted by

View all comments

Show parent comments

28

u/mattlag Mar 19 '19

WTF kind of languages are 1-indexed‽

51

u/m0nn3rs Mar 19 '19

English

35

u/surprise_sky_bears Mar 19 '19

Matlab

2

u/[deleted] Mar 19 '19

ughhhhh yuck i try to forget those days

11

u/IntelligenceOptional Mar 19 '19

Visual Basic (pre-dot-Net) and some other old BASIC languages (shudder)

9

u/alinnert Mar 19 '19

ColdFusion

1

u/robotorigami Mar 19 '19

This is the first server side language I learned back in the early 2000s

6

u/BecauseImAsian Mar 19 '19

Mathematica/Wolfram Language

5

u/JohnMcPineapple Mar 19 '19 edited Oct 08 '24

...

1

u/__inactive__ Mar 19 '19

Action script

1

u/format71 Mar 19 '19

Pascal/delphi

1

u/S_KTT Mar 19 '19 edited Apr 02 '20

Julia, Ada and Smalltalk. Erlang indexes tuples and lists starting from 1

1

u/guywhodoesstuff Mar 19 '19

CSS

1

u/mattlag Mar 19 '19

Yeah, but CSS doesn't have loops, so this isn't as bad.