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 7966727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:30:39+00:00 2026-06-04T06:30:39+00:00

I was wondering, what is the diferrence between a prototyped and a non-prototyped method

  • 0

I was wondering, what is the diferrence between a prototyped and a non-prototyped method in JavaScript? Any help is deeply appreciated.

  • 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-06-04T06:30:40+00:00Added an answer on June 4, 2026 at 6:30 am

    A non-prototyped method will take up memory in every instance of the class.

    It will also (assuming it’s declared in the scope of the class constructor) have access to any other private variables (or methods) declared in that scope.

    For example, this will create an instance of the function per object, and that function can access myVar:

    function MyObject() {
         var myVar;
         this.func = function() { ... };
    };
    

    and in this case there’s only one instance of the function shared between every instance of the object, but it will not have access to myVar:

    function MyObject() {
         var myVar;
    };
    
    MyObject.prototype.func = function() { ... };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i was wondering if there is any significant difference between consuming .asmx services with
I was wondering if there are any difference between function __construct() { parent::__construct(); $this->load->
I was wondering if there was any performance difference between the two approaches below.
I was wondering the difference between these two dispatchEvent method... //1. eventObj:YouTubeSearchEvent = new
I was wondering if there are any problems or difference between sending normal headers
Hi I was wondering if there is any difference between initializing object like this
I was wondering what is the difference between the following two method declarations: public
I am wondering whether there is any difference between inlining functions on a linker
I am reading scaladocs and just wondering difference between direct assignment and .clone method.
Recently I've been wondering if there is any significant difference between this code: public

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.