Skip to main content

Questions tagged [javascript]

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

8 votes
1 answer
1k views

JavaScript has a handful of primitive types such as strings and numbers. However, when doing something fancy, it often wraps these types inside temporary objects in order to use object methods, a ...
Manngo's user avatar
  • 181
1 vote
1 answer
341 views

Take this example program in modern Angular: @if (user.profile.settings.startDate; as startDate) { {{ startDate }} } Why does there need to be a ...
FlatAssembler's user avatar
0 votes
0 answers
147 views

In new versions of Angular, you do control flow like this: ...
FlatAssembler's user avatar
1 vote
1 answer
249 views

In the old versions of Angular (before the @if, @for, and @switch), why did ...
FlatAssembler's user avatar
2 votes
1 answer
341 views

In our front-end developer course at Algebra, we are being taught there are three different types of objects in JavaScript: Native objects - those that are defined by JavaScript itself, such as ...
FlatAssembler's user avatar
17 votes
3 answers
5k views

This is something that has slightly annoyed me for a while. A map as a mathematical object (function) is by default "unordered", and the same is for maps as a data structure AKA associative ...
qwr's user avatar
  • 601
1 vote
2 answers
1k views

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
602 views

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
664 views

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
  • 9,672
30 votes
1 answer
4k views

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
  • 9,627
8 votes
1 answer
395 views

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
  • 10.5k
14 votes
6 answers
1k views

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,910