title: Methods in object in JavaScript
body: <pre><code>// Given the object:
  var employee = {
    name: &quot;John Smith&quot;,
    job: &quot;Programmer&quot;,
    age: 31,
    
    }
  }
  
  // Add a method called nameLength that prints out the
  // length of the employees name to the console.
  </code></pre>
  <p>i am making one method but not getting the length of the name</p>
  <pre><code>nameLength: function(){
      console.log(this.name.length);
  </code></pre>