how to get a value which points to a function

Posted by darkandcold on Stack Overflow See other posts from Stack Overflow or by darkandcold
Published on 2010-05-15T05:59:27Z Indexed on 2010/05/15 6:04 UTC
Read the original article Hit count: 204

Filed under:
|

hi,

i have a value like that

var myvalue=myfunction(1,2);

what I need is that GETTING myfunction(a,b) as a string..

I mean not "myfunction's value"

hmmm, let me explain,

myfunction(1,2) returns 1+2=3

if I type alert(myvalue) it returns 3 but I need myfunction(a,b) AS IT'S TYPED when I use alert. NOT IT'S VALUE

think it like var myvalue='myfunction(a,b)' now, if i use Alert, it gives me myfunction(a,b)

how can I do that?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript