title: I want to make function().action(); in JavaScript
body: <p>sorta like jquery but I wanna make a function in js with a <strong>.whatever</strong> at the end, for example <code>function().text()</code> or something like that what I've tried to do is </p>
  
  <pre><code>function a() {
  
      function click() {
          alert("hi");
      }
  }
  </code></pre>