Download- Code.txt - -10 Bytes-

// Add an event listener to the button downloadButton.addEventListener('click', () => { // Generate the code contents const codeContents = 'This is a sample code.';