Como faço para substituir um pouco de texto com variável de string em javascript?

Eu sei que esta é uma pergunta muito simples, mas eu preciso substituir este bit de texto em um parágrafo com uma variável toda vez que um mesmo atira.

A marcação é assim

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
#container {width:100%; text-align:center; }
#heading {width:100%; text-align:center; }
</style>
</head>

<div id="heading">
<h1>hello</h1> 
</div> 
<body>
<div id="container">
<textarea name="mytextarea" cols="60" rows="40"></textarea>
</div>
</body>
</html>

O que eu preciso é onde diz "olá" nas tags, é para isso ser uma variável que vai ser substituída por uma string que eu vou gerar.

questionAnswers(2)

yourAnswerToTheQuestion