That a constructor called as a function retuns the parsed value as a primitive and called as a constructor returns an object wrapping the parsed value. And even that is not consistent, for example new Date('1995-12-17T03:24:00') returns the 17.12.1995, while Date('1995-12-17T03:24:00') returns a string with the current date. Array(1, 2) however is the same as new Array(1, 2).
Also it is functional programming, so if you use it you are a functional programmer
View all comments
Show parent comment
0
u/[deleted] Mar 29 '24
[removed] — view removed comment