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

  • SEARCH
  • Home
  • 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 8028349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:06:43+00:00 2026-06-05T00:06:43+00:00

Forgive my ignorance, I want to know what is the difference between: class Car

  • 0

Forgive my ignorance, I want to know what is the difference between:

class Car extends Backbone.Model {

}

and

var Car = Backbone.Model.extend({

});

As silly as I was, the first expression is from coffee script syntax, which compiles to the lower one (not exactly, but does the same thing).

  • 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-05T00:06:45+00:00Added an answer on June 5, 2026 at 12:06 am
    1. the first one is NOT javascript.
    2. javascript extend is different from java extend

    JavaScript’s dynamism allows us to add or replace methods of an
    existing class. We can call the method method at any time, and all
    present and future instances of the class will have that method. We
    can literally extend a class at any time. Inheritance works
    retroactively. We call this Class Augmentation to avoid confusion with
    Java’s extends, which means something else.

    from http://javascript.crockford.com/inheritance.html

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

Sidebar

Related Questions

Please forgive my ignorance, I am new to Ruby. I know how to search
First of all, please forgive my ignorance in both Java and Hibernate, I'm studying
first, please forgive my ignorance and inability so use the search engine (i swear
Forgive my ignorance, but I am somewhat new to shell scripting and the use
Forgive my ignorance in asking this basic question but I've become so used to
Please forgive my ignorance, but I wasn't able to find an answer elsewhere. I
New to all this so forgive my ignorance. I am trying to figure out
I'm new to Rails, so forgive my ignorance of ActiveRecord. One of my models
I'm a complete WordPress noob, so forgive any ignorance in the following question. I
I am very new to javascript, so forgive me for my ignorance. I am

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.