Questions tagged [javascript]

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

Filter by
Sorted by
Tagged with
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
  • 8,111
7 votes
1 answer
261 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,535
3 votes
2 answers
240 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,642
3 votes
1 answer
611 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,857
2 votes
1 answer
476 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
  • 175
1 vote
2 answers
182 views

What is the difference between JS's map and Python's dictionary?

It seems that JS's map and Python's dictionary are equivalent. Is that correct? And if so, why they aren't called the same? Given that JS is newer, why wouldn't the map be called as dictionary as well?...
Ooker's user avatar
  • 175