how to give a new paragraph a class with document.querySelector code example
Example: js queryselector names
// This selects the first element with that name
document.querySelector('[name="your-selector-name-here"]');
// This selects the first element with that name
document.querySelector('[name="your-selector-name-here"]');