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
Tree Structure
Funny stuff
Union of two sorted arrays
A01 Implement Queue with Limited Size of Arrays
Find the missing number in array
JSON parse
Add items on Set
problem_name
localhost:8080/?name=2017&lname=July
ddd