title: How to add boolean attribute using JavaScript
body: <p>How do you add boolean attributes using JavaScript? For example, how can you change:</p>
  
  <p><code>&lt;p&gt;</code> to <code>&lt;p contenteditable&gt;</code></p>
  
  <p><code>&lt;p&gt;</code> to <code>&lt;p data-example&gt;</code></p>