{"ScriptPreparationCode":null,"TestCases":[{"Name":"Replacing the img","Code":"let diceRoll = 4\r\n\r\n// Search for the .dice \u003Cdiv\u003E\r\nlet theDice = document.querySelector(\u0027.dice\u0027)\r\n\r\n// Replace the innerHTML \u003Cimg\u003E with a new \u003Cimg\u003E\r\ntheDice.innerHTML = \u0060\u003Cimg src=\u0022https://raw.githubusercontent.com/juneate/dice-game/e600e36cee672b294cea03917617de81fb77fcf3/img/dice${diceRoll}.svg\u0022 alt=\u0022Rolled ${diceRoll}\u0022 class=\u0022face\u0022\u003E\u0060","IsDeferred":false},{"Name":"Updating the image attributes","Code":"let diceRoll = 4\r\n\r\n// Search for the .face \u003Cimg\u003E\r\nlet theFace = document.querySelector(\u0027.face\u0027)\r\n\r\n// Replace the src attribute with \u0022img/dice4.svg\u0022\r\ntheFace.setAttribute(\u0060src\u0060, \u0060https://raw.githubusercontent.com/juneate/dice-game/e600e36cee672b294cea03917617de81fb77fcf3/img/dice${diceRoll}.svg\u0060)\r\n\r\n// Replace the alt attribute with \u0022Rolled 4\u0022\r\ntheFace.setAttribute(\u0060alt\u0060, \u0060Rolled ${diceRoll}\u0060)","IsDeferred":false}]}