Created
April 14, 2024 03:56
-
-
Save madhoshyagnik/78036f88d8eba508f250f83bf8b6245f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const para = document.querySelector('p'); | |
// para.innerText += 'ninjas are awesome'; | |
// console.log(para.innerText); | |
const paras = document.querySelectorAll('p'); | |
paras.forEach(element => { | |
element.innerText += ' new text'; | |
console.log(element.innerText); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment