Is …foo an operator or syntax?

I'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't mention it.

Google seems to suggest the term operator is more popular and accepted, with sites such as the Microsoft documentation and referring to it as such.

Which term would be the most correct in the context of ECMAScript, if any, and why? What about array destructuring assignment?



Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.