JavaScript Objects
<!DOCTYPE html> <html> <body> <h2>Add, update, and delete</h2> <script> const book = { title: "Deep Work" }; book.author = "Cal Newport"; // add book.year = 2016; // add book.year = 2017; // update delete book.author; // remove console.log(book); // { title: "Deep Work", year: 2017 } </script> </body> </html>