Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var name = {
firstName: 'Akash'
}
function showDetails(lastName, phoneNumber) {
console.log(this.firstName + ' ' + lastName + ' : ' + phoneNumber) // Akash Rajvanshi : 9782509154
}
showDetails.call(name, 'Rajvanshi', 9782509154)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.