Questions tagged [javascript]

For questions about JavaScript's design, or languages which are closely related to JavaScript.

Filter by
Sorted by
Tagged with
2 votes
1 answer
450 views

Is it correct that Python does not encourage us to read objects's content? [closed]

After playing around Python a little bit, I feel like Python does not encourage us to read objects's content. Take JavaScript for example: just a simple act of calling an object will list all the ...
Ooker's user avatar
  • 147
3 votes
1 answer
604 views

Why is the ECMAScript specification formatted the way it is? [closed]

The ECMAScript specification and its drafts are very accessible, but they're formatted a bit oddly -- case in point, the current version of the ToBigInt abstract operation uses three fonts: The base (...
Bbrk24's user avatar
  • 8,563
29 votes
1 answer
4k views

Why did JavaScript choose to include a void operator?

In JavaScript, there is an operator void that, given an expression, evaluates it but then ignores the result and evaluates to ...
mousetail's user avatar
  • 6,746
7 votes
1 answer
253 views

Why do many dynamically typed languages identify types with strings?

I noticed in JavaScript and Lua, 'types' i.e., those returned by typeof()/type() are just identified by strings. As such we see ...
user16217248's user avatar
  • 7,285
2 votes
2 answers
227 views

What do various designers of JavaScript regret or dislike about its design? Given the opportunity, what would they do differently and why?

And are there underlying, unifying patterns to these regrets and how said creators would choose to create a revolutionary (in the sense of being "more than evolutionary" / making significant ...
starball's user avatar
  • 1,614