Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
apply
//nodejs v6.4.0 var obj1={ firstName: "Pavithra", lastName: "Balraj", fullName: function() { return this.firstName+ " " +this.lastName; } }; var obj2={ firstName: "Usha", lastName: "Balraj" }; console.log(obj1.fullName.apply(obj2)); var obj = { x: 81, getX: function() { return this.x; } }; console.log(obj.getX.bind(obj)()); console.log(obj.getX.call(obj)); console.log(obj.getX.apply(obj));
run
|
edit
|
history
|
help
0
myfirstmodule.js
Funny stuff
RFID TEST
example for node promises
neural spam network
find all prime factors of a number
Union of two sorted arrays
lodash
Find the missing number in array
Sort based on keys