title: node.js class SyntaxError: Unexpected identifier
body: <p>I write my class like that on node </p>
  
  <pre><code>class hello {
   function helloworld(){
  
         console.log('helloworld');
  
  
     }
  
  
  
  };
  </code></pre>
  
  <p>but when I run my server i get this error </p>
  
  <blockquote>
    <p>SyntaxError: Unexpected identifier</p>
    
    <p>function helloworld(id){
             ^^^^^^^^^^</p>
    
    <p>SyntaxError: Unexpected identifier</p>
  </blockquote>