title: how to combine first name and last name in javascript?
body: <pre><code>**"error"
  "TypeError: Person.fname is not a function
      at Person.fullname (hovaqedile.js:14:17)
      at hovaqedile.js:19:40
      at https://static.jsbin.com/js/prod/runner-4.1.4.min.js:1:13924
      at https://static.jsbin.com/js/prod/runner-4.1.4.min.js:1:10866**
  </code></pre>
  
  <p>hi</p>
  
  <p>how to combine first name and last name in javascript ? I am getting error </p>
  
  <pre><code>function Person(){
  
  }
  
  Person.prototype.fname=function(){
    return "abc"
  }
  
  Person.prototype.lname=function(){
    return "lop"
  }
  
  Person.prototype.fullname=function(){
    return Person.fname() + Person.lname()
  }
  
  var p = new Person();
  
  console.log(p.fullname())
  </code></pre>
  
  <p>can you please tell how I will print call first name and lastname in javascript</p>