Skip to main content

Questions tagged [javascript]

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

Filter by
Sorted by
Tagged with
1 vote
2 answers

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
2 votes
1 answer

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
3 votes
1 answer

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,937
29 votes
1 answer

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,229
8 votes
1 answer

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 ...
CPlus's user avatar
  • 8,261
3 votes
2 answers

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 ...
super-starball-ultra's user avatar