How to make a radio button that replaces a specific line in the script. There is a script that, when clicked, replaces the text, so the radio button is needed to change this very line to another. The site has a few buttons. When you click on the text that appears. In the text there are words that need to be changed by radio buttons. As you know js consists of lines there is a line with this word, if you change this line to another, when you press the button, the text with the word that is changed will be displayed.
I mean the string, the string, var table {'the string that needs to be changed' 'one more line that needs to be changed by its radio group', etc. before closing}