Some of the examples in our textbook, Fundamentals of Web Development, use the document.write function to add information to an HTML document. Using document.write is okay for small examples like that, but you should not use it in your assignment or project code. Instead, use DOM (Document Object Model) functions or the innerHTML property. You can read about using the innerHTML property in the Generating HTML section below.
You can see a list of ES2015 features with explanations and examples at https://github.com/lukehoban/es6features There is a chart showing browser support for ES2015 features at https://kangax.github.io/compat-table/es6/ Current versions of Firefox (98%), Chrome (98%), and Safari (99%) support 98-99% of ES2015 features, while current versions of Edge support 96%.
For this class the only things you will be required to know about ES2015 are the features specifically explained in the notes and in the assigned reading in the textbook.
You can see an example of generating HTML with a detailed explanation on these
• genSampleNotes.html A walk-through of genSample.html and genSample.js