I need to make a button where A button for setting the text in the text area to bold, and unsetting it to its previous state. This should be the same button.

```js
function toggleBold() {
  var bold = true
  if (bold = ture) {
    document.getElementById("entertext").
  }
}
```

```html
<button onclick="toggleBold">BOLD</button>

<form>
  Enter Text:
  <br>
  <input type="text" name="your text" id="entertext">
</form>
```