title: Create new data type in JavaScript
body: <p>I want to extend a data type of JavaScript and assign it to new data type.</p>
  
  <p>E.g:<br>
  I want build a IP address data type (<code>object</code>),it have all properties of <code>String</code> type, but I do not know how to copy all the properties of the <code>String</code> class to <code>IPclass</code>.</p>