Say I have the following JavaScript in a HTML page
The info inside the tag is then processed inside it to access other parts. If you want to change the text inside another paragraph, then first give the paragraph an id, then set a variable to it using
getElementById([id])
to access it ([id] means the id you gave the paragraph).
Next, use the innerHTML
built-in variable with whatever your variable was called and a '.' (dot) to show that it is based on the paragraph. You can set it to whatever you want, but be aware that to set a paragraph to a tag (<...>), then you have to still put it in speech marks.