Users Pricing

forum

Home Forums Disable view code of function javascript – MindStick

Disable view code of function javascript

Anonymous User 2259 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!

1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md