« first day (4018 days earlier)      last day (916 days later) » 

2:11 AM
FacebookSDK.stealDataFrom(FacebookSDK.getAllUsers());
 
 
1 hour later…
3:32 AM
 
 
4 hours later…
7:56 AM
//rest operator syntax
const [...abc] = array
//Spread operator syntax
const abc = [...array]

Are there any difference between them?
 
@DamodaraSahu Yes, they have nothing in common, other than having ... as part of this.
An array literal is instantiated as arr = ["hello"] while bracket notation for getting object properties is obj["hello"] and they still aren't the same thing
Also, none of the is actually an operator. They are syntax. Different thing.
44
Q: Is it spread "syntax" or the spread "operator"?

Andrew LiI've heard ... referred to both as 'spread syntax' and 'the spread operator', with the latter being a lot more popular. The URL of the relevant MDN documentation suggests that it was initially referred to as the spread operator but later changed to spread syntax, and MDN's list of operators doesn...

The most important difference is that an operator behaves the same wherever it is used, while syntax is context specific. You can use spread in arrays but abc = ...array is not valid.
 
 
9 hours later…
user1986815
4:44 PM
how can I check if a id is accessible?
 
8:29 PM
I have installed eslinter in vscode in node project and I have standard style. When I save my typescript file, it automatically fixes some issues, but doesn't remove semicolons. With other project with same setup, it does remove semicolons... any ideas what could be wrong?
 
@newbie Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
user1986815
is my question not visible?
 
Hi, Can I ask help for my assignment question regarding an app here ?I'm stuck a particular point and don't know how to proceed as my code is not working ,I tried to search but not founding exact resolution
 
 
1 hour later…
9:39 PM
Hello I am thinking about how to make a wedding invitation website where the user doesn't need to log in but can reply wether he wants to attend the wedding by either clicking "yes" or "no".

But I do want to prevent that another person is impersonating someone else by giving a unique url which looks like this:

http://example.com?firstname=john&lastname=doe&code=abc123!@#

So this url is given to John Doe only. Other people can know John's firstname and lastname but they will never know the "code". This causes only John to give his reply and not imposters wether he is going to attend the w
 
@superkytoz Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 

« first day (4018 days earlier)      last day (916 days later) »