Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6693055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:56:19+00:00 2026-05-26T05:56:19+00:00

I have been racking my brain on this one for hours now and I

  • 0

I have been racking my brain on this one for hours now and I have looked at probably 30 online tutorials by now. As far as I can tell, I am not doing anything wrong, but yet I am having problems. I have some test code:

TestPulse = function() {};
TestPulse.prototype.go = function() { alert('You just pulsed'); };
TestPulse.go();

I also tried:

function TestPulse() {};
TestPulse.prototype.go = function() { alert('You just pulsed'); };
TestPulse.go();

Finally fed up, I just ripped some code from a few prototyping and namespace tutorials around the web, and no matter what I do, I get the following error:

Uncaught TypeError: Object function TestPulse(){} has no method ‘go’

Like I said, I am not sure I am doing anything wrong…so what exactly is going on here? When I debug, I do see a prototype object attached to the function, with the constructor and all, so I know its there. Where is the issue? Am I not understanding how prototyping works?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:56:19+00:00Added an answer on May 26, 2026 at 5:56 am

    You don’t have an instance of TestPulse…

    TestPulse = function() {};
    TestPulse.prototype.go = function() { alert('You just pulsed'); };
    new TestPulse().go();
    

    http://jsfiddle.net/HYWPk/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been racking my small brain for ages now, so can this be
I have been racking my brain over this all day today. I have the
Ok, I've been racking my brain on this one solo for too long. I've
I've been racking my brain about how to do this in one query without
I have been racking my brains over this for a while now. Here is
I have been racking my brain all morning with this. I am using Eclipse
In trying to parse a date, I have been racking my brain for hours:
I've been racking my head over this for a while now and can't find
I have been racking my brains on this one looking for a quick solution.
I've been raking my brain trying to figure this one out. I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.