Exercise 1: Change Text Content - Create an HTML document with a paragraph element (e.g., `
Hello, World!
`). - Write JavaScript code to change the text content of the paragraph to "Hello, JavaScript!" when a button is clicked.Hello, World!
Exercise 2: Toggle Visibility - Create an HTML document with a button and a hidden div (e.g., ``). - Write JavaScript code to toggle the visibility of the div when the button is clicked.