web-components-examples
web-components-examples copied to clipboard
Update main.js
Summary
Unnecessary code removed.
- No need to declare the 'self' variable - we already have 'this' for this purpose
- No need to declare a constructor - JavaScript will call super automatically if no constructor is declared
- No need to convert the node list to an array - we have 'for' loops that can iterate over node lists directly