title: how to insert my code JS in mysql database
body: <p>I'm a beginner in JavaScript, and I want to store JavaScript code snippets in a MySQL database,in a table named <code>tag</code> in order to do an automatic tracking. How can I do that?</p>
  
  <p>Here is my snippet of code that exists in the code of my Node.js server</p>
  
  <pre><code>$(document).ready(function(data) {
   $('#poke').click(function(){
          socket.emit('alarm')
          })
     });
  </code></pre>
  
  <p><code>poke</code> is the ID of my button.</p>
  
  <p>This is my table <code>tag</code>, where I want to insert my JavaScript code:</p>
  
  <p><a href="https://i.stack.imgur.com/B8bs4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B8bs4.png" alt="enter image description here"></a></p>