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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:11:20+00:00 2026-05-29T09:11:20+00:00

Why most of the javascript frameworks uses object literals instead of constructors or constructors

  • 0

Why most of the javascript frameworks uses object literals instead of constructors or constructors with prototypes?Will it be non standard ,if somebody uses constructors with prototypes in a new framework.What are the advantages of object literals over constructors with prototypes?

  • 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-29T09:11:20+00:00Added an answer on May 29, 2026 at 9:11 am

    It all depends on the need of the programme you’re writing and the way you want to maintain the code base.

    When you have objects which get instantiated a lot with shared properties and methods it could be more efficient memorywise to use a constructor and fill its prototype.

    When the code is more or less a singleton it is probably more efficient to just make an object and fill it with some methods.

    If you would like more information about “patterns” and what they can mean to you you could check out http://addyosmani.com/resources/essentialjsdesignpatterns/book/

    Or if you like a regular (e-)book i would recommend http://shop.oreilly.com/product/9780596806767.do

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

Sidebar

Related Questions

Possible Duplicate: What is the most efficient way to clone a JavaScript object? I
A thing that I noticed about most JavaScript frameworks is that the most common
Hey guys I have been trying different Javascript/AJAX jsf frameworks. I find most of
Do any of the existing JavaScript frameworks have a non-regex replace() function, or has
Extensively reading about various assertion frameworks in JavaScript. Is there any kind of de-facto/most
Most JavaScript code is also syntactically valid ActionScript 3.0 code. However, there are some
Most of javascript and web development books/articles says that you must put CSS in
I find that many high level functions are missing in most well-known javascript libraries
Most people talk about progressive enhancement right now as serving browsers with javascript (enhanced
What would be the most idiomatic way to do the following in JavaScript: If

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.