Hi, I noticed that pretty much all pages on MDN use the old JavaScript syntax (var instead of let/const, no arrow functions). Is there a specific reason why we keep using this syntax, or can I replace it by the new syntax when updating a page?
I suppose that on the one hand, modern syntax is better because new JavaScript developers will not learn outdated JavaScript, on the other hand, the code examples should be ready for copy & pasting into production code, where the code will not work on some older browsers without transpiling.
Other than that, when it comes to indentation, or using quotes vs. apostrophes, I would follow the popular airbnb style guide. Is that fine or do you have a different style guide?