{"ScriptPreparationCode":" var sharedInfo = {\r\n chromecastVersion: \u0027cafReceiver\u0027,\r\n activeTrackIds: [],\r\n tracks: [],\r\n mediaInfo: null,\r\n errors: [],\r\n availabilityStartTime: undefined,\r\n accessToken: null,\r\n authorizationKey: null,\r\n entitlementToken: null,\r\n senderDeviceId: null,\r\n initialAudioTrackLanguage: \u0027\u0027,\r\n initialTextTrackLanguage: \u0027\u0027,\r\n viewableId: null,\r\n playableId: null,\r\n isLive: false,\r\n isStarted: false,\r\n isPlaying: false,\r\n isSeeking: false,\r\n isBuffering: false,\r\n isPlayingDaiAds: false,\r\n currentTime: 0,\r\n volume: 0,\r\n duration: 0,\r\n playSession: null,\r\n viewable: {},\r\n preflight: {\r\n playlistDuration: 0,\r\n playlist: null,\r\n mediaTailor: null,\r\n license: null,\r\n headers: null,\r\n },\r\n startLivePoint: {},\r\n sar: \u00271:1\u0027,\r\n };\r\n\r\nvar volumeUpdate = {\r\n volume:1, \r\n duration:2,\r\n}\r\n","TestCases":[{"Name":"Using the spread operator","Code":"const finalObject = {\r\n\t...sharedInfo,\r\n \t...volumeUpdate\r\n};","IsDeferred":false},{"Name":"Using Object.assign","Code":"const finalObject = Object.assign(sharedInfo, volumeUpdate);","IsDeferred":false}]}