What does ## mean in Javascript? [duplicate] - javascript

This question already has answers here:
What does ## ("at at") mean in ES6 JavaScript?
(1 answer)
JS variable starting with "#"
(4 answers)
Closed 4 years ago.
When I look through the MDN docs I sometimes notice ##. For example the Set documentation has links to get Set[##species] and Set.prototype[##iterator]()
What does ## mean?
(Also how do you say it? "AT-AT" would make for a great Star Wars reference)

Related

VS code icons meanings? [duplicate]

This question already has an answer here:
How could I check the meaning of Vscode's popup-menu icon stands for?
(1 answer)
Closed 12 months ago.
How can i find these icons meanings? And also there are same codes but different icons there (2x LN10) why?
You can find them on the IntelliSense section of the VSCode docs. They typically refer to the types of the variable or value that they are referencing and can be modified by extensions as well. You can read more about them here: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions

Why does true+true+true===3 resolve to true in javascript [duplicate]

This question already has answers here:
Type conversion of Boolean to Number in JavaScript
(3 answers)
JavaScript Adding Booleans
(3 answers)
Closed 3 years ago.
The title is sort of self-explanatory, I couldn't find a similar question or explanation for this

With and without the quantifier {1} has same effect? [duplicate]

This question already has answers here:
Using explicitly numbered repetition instead of question mark, star and plus
(4 answers)
Reference - What does this regex mean?
(1 answer)
Closed 4 years ago.
Is there any difference between the regular expressions:-
/^[1-9][0-9]+$/
and
/^[1-9]{1}[0-9]+$/
They both seem to give the same result. Which convention is better,because in many examples I can see the use of {1}, but feel it is quite useless, am I right?

What's the meaning of "$$("a")" in JavaScript? [duplicate]

This question already has answers here:
JavaScript Double Dollar Sign
(5 answers)
$ Variable (Dollar Sign) in Chrome?
(6 answers)
What is the difference between $ and $$?
(7 answers)
Closed 4 years ago.
What's the meaning of $$("a") in JavaScript?, Is that something relevant to jQuery?
Typed it into browser's console, it works.
In Chrome $$ is an alias for document.querySelectorAll. Learn more on the expressions page.

What does |0 do in Javascript? [duplicate]

This question already has answers here:
What does the "|" (single pipe) do in JavaScript?
(5 answers)
What is this asm style "x | 0" some javascript programmers are now using?
(4 answers)
Closed 7 years ago.
I have been looking into asm.js to use for a project recently, and I noticed that very often the asm.js compiled code will end a statement with |0;, even seemingly redundantly as in the statement i = i|0;
This is not something I have encountered in Javascript code before. What is it for?
EDIT
I don't believe this is duplicate. I know what a bitwise or is. I am specifically asking here why one might use it to or with a 0 before assignment. What purpose does that serve?
Convert to integer and apply a bitwise or with 0. Basically a short form of Math.floor().

Categories