Giter VIP home page Giter VIP logo

Comments (3)

skatcat31 avatar skatcat31 commented on May 15, 2024

Expanding the question:

How would you compare two objects to check for different types of equality?

Equality can mean many things, but primarily in computer science there are two ways to check for equality with Objects:

  • By Value
  • By Reference

By Value

Checking equality by value means to see if the second Object stores an equivalent value. In Java this is done with the .equals method, and in JavaScript this is done with loose evaluation(==)

By Reference

Checking equality by reference means to see if the second Variable resolves to the same Object in memory. In Java this is done on Objects with == and in JavaScript with strictly equal to(===)

from 30-seconds-of-interviews.

skatcat31 avatar skatcat31 commented on May 15, 2024

Otherwise the other option is to add tags for languages and put this as an example in each with the differences per language highlighted against a 'base' language(probably JavaScript since this is a full stack resource)

from 30-seconds-of-interviews.

fejes713 avatar fejes713 commented on May 15, 2024

Thanks for pointing this out @skatcat31

We have discussed this in the early days of 30 seconds of interviews and there were mixed opinions on this topic.

In general, this is a great idea. It makes sense to have different answers for different programming languages. However, our interview question database is not very big ~80 questions.

Personally, I am against adding material that is not in the scope of modern full-stack web development for now. Mainly because, as I said, we have ~80 questions and it is not worth it.

from 30-seconds-of-interviews.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.