When you call a constructor, three things happen: - JavaScript creates a new empty object. - The this keyword points to that new object. - The constructor returns the new object. You should use object ...
Use brackets if the key has spaces or exists as a variable. A method is a function inside an object. The word this points to the object you call. Use regular functions for methods. Use arrow functions ...
Most rules target JavaScript and TypeScript, but some also lint CSS, HTML, JSON, and Markdown when used with the matching ESLint language plugin.