-1

i have this JavaScript code :

(function() {
  var Pacnet;
  Hello = (function() {
    var success_message;

    function Hello() {}
    Hello.prototype.status = function() {};

    return Hello;
  })();
}).call(this);

any solution ? thanks.

2
  • i tried : new Hello(); new $.call.Hello(); new call.Hello(); but not working Commented Oct 6, 2013 at 7:25
  • Any solution to what? Commented Jan 29 at 19:11

1 Answer 1

0

new Hello()

Pacnet (which you were trying to call before you edited your attempts out of your question) never has a value assigned to it.

Sign up to request clarification or add additional context in comments.

5 Comments

question edited.. anyways .. i tried your solution with not working .
when i do this : ReferenceError: Hello is not defined
When I do that, I don't get that error.
@akdev2 - Follow the link in my previous comment. Click Run With JS. See the alert showing the empty function on the object.
@akdev2 — You never call Paknet.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.