Hello there! It's been a long time.
It's just a simple question tho.
My question is: how to make it returns You-Know-Who and 100 instead of [object Object]?
And also, sorry for the soooo noobish question. I'm not into coding for a long time (about 1 year long) because I've reached last year in school, so I've focused at studying.
Thanks for your answer! *winks*
It's just a simple question tho.
- Code:
var data = {
name:"You-Know-Who",
age:100
}
function exFunc(a, b) {
alert('Hello, ' + this + 'and ' + this);
}
exFunc.call(data.toString());
My question is: how to make it returns You-Know-Who and 100 instead of [object Object]?
And also, sorry for the soooo noobish question. I'm not into coding for a long time (about 1 year long) because I've reached last year in school, so I've focused at studying.
Thanks for your answer! *winks*