Q:

How to split the function to two differnt file nodejs

Hello I am new to Node js so please ignore if i am wrong. 
I have a file like 
  exports. Client = function() {
            this.example = function(name, callback) {
                console.log(name);
            };
            this.example1 = function(name1, callback) {
                console.log(name1);
            };

    };

I accesss like this
var Client = require('./client.js').Client;
var client = new Client();
client.example1=.....

How can i split the example1 function to another js file and still use the Client object to access it. 

A:

I suggest you to read this page: http://nodejs.org/api/modules.html
Your javascript module should export the function thanks to module.exports. 
Content of the example1.js file:
module.exports.example1 = function(name1, callback) {
            console.log(name1);
        };

You can access to the function thanks to the require function in your client.js file: 
var example1 = require('./example1.js').example1 ;

module.exports. Client = function() {
        this.example = function(name, callback) {
            console.log(name);
        };
        this.example1 = example1;

};

Beware, the nodejs modules are singletons.