What is the correct use of the interface keyword and `@@` in JavaScript?

interface

- this JavaScript keyword is reserved for future use and @@

I see it often in the material describing the new ES6 Symbol .

For example, from jhusain / asyncgenerator :

interface Observable {
  Generator @@observer(Generator observer)
}

interface Iterable {
  Generator @@iterator()
}

      

Is this just figurative use? What does it mean interface

and @@

/ or correct usage if found in docs / specs / feature proposals?

+3
javascript symbols interface documentation


source to share


No one has answered this question yet

Check out similar questions:

7649
How does JavaScript blocking work?
7494
How can I remove a specific element from an array in JavaScript?
7432
How to check if a string contains a substring in JavaScript?
7287
What does "use strict" do in JavaScript, and what are the reasons for it?
5670
Which operator is equal (== vs ===) should be used in JavaScript comparisons?
5101
What's the most efficient way to deeply clone an object in JavaScript?
4829
How do I include a JavaScript file in another JavaScript file?
4270
Link. What does this symbol mean in PHP?
2743
What is it!! (not) operator in JavaScript?
1647
What is a "new" keyword in JavaScript?



All Articles
Loading...
X
Show
Funny
Dev
Pics