Users Pricing

forum

home / developersection / forums / disable view code of function javascript

Disable view code of function javascript

Anonymous User 2197 04 Apr 2013
Hi Everyone!

Like this, if I made a function:

    function a() {
        alert("Hello!")
    }
I don't want you to be able to view the code like:

    eval(a)
Returns all the code but

    eval(a())
Returns the alert

When doing eval(a) I want it to not return the code, just nothing how?

Thanks in advance!

I am a content writter !


1 Answers