Skip to content

Commit a2e0127

Browse files
Update heading and paragraph text content
1 parent 1c8482c commit a2e0127

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

js/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ let remove = document.getElementById('remove')
6969
show.onclick = function(){
7070
let main = document.getElementById('main')
7171
let heading = document.createElement('h1')
72-
heading.textContent = 'Hello world'
72+
heading.textContent = 'This is a new heading'
7373
heading.style.textAlign = 'center'
7474
main.style.background = 'red'
7575
heading.style.color = 'white'
@@ -80,7 +80,7 @@ show.onclick = function(){
8080
addpara.onclick = function(){
8181
let main = document.getElementById('main')
8282
let para = document.createElement('p')
83-
para.textContent = 'emnei'
83+
para.textContent = 'This is a new paragraph'
8484
para.style.textAlign = 'center'
8585
para.style.color = 'white'
8686
main.appendChild(para)

0 commit comments

Comments
 (0)