forum

Home / DeveloperSection / Forums / Disable view code of function javascript

Disable view code of function javascript

Anonymous User189004-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!

Updated on 04-Apr-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By