{"ScriptPreparationCode":null,"TestCases":[{"Name":"Using the spread operator","Code":"const initialBooks = [\r\n { title: \u0022Unsouled\u0022, author: \u0022Will Wight\u0022 },\r\n { title: \u0022The Iron Prince\u0022, author: \u0022Bryce O\u0027Connor and Luke Chmilenko\u0022 },\r\n { title: \u0022He Who Fights with Monsters\u0022, author: \u0022Shirtaloon\u0022 },\r\n];\r\n\r\nconst additionalBook = { title: \u0022Lightbringer\u0022, author: \u0022Brent Weeks\u0022 };\r\n\r\nconst allBooks = [ {...initialBooks, ...additionalBook}]","IsDeferred":false},{"Name":"Using Object.assign","Code":"const initialBooks = [\r\n { title: \u0022Unsouled\u0022, author: \u0022Will Wight\u0022 },\r\n { title: \u0022The Iron Prince\u0022, author: \u0022Bryce O\u0027Connor and Luke Chmilenko\u0022 },\r\n { title: \u0022He Who Fights with Monsters\u0022, author: \u0022Shirtaloon\u0022 },\r\n];\r\n\r\nconst additionalBook = { title: \u0022Lightbringer\u0022, author: \u0022Brent Weeks\u0022 };\r\n\r\nconst allBooks = [ Object.assign(initialBooks, additionalBook)]","IsDeferred":false}]}