Top community members
All Questions Ask Question

Welcome to Dirask IT community! ❤ 💻
We are community that shares solutions with each other.

If you think you have something to add here.

you are welcome with your fresh ideas - List Articles

What is the best way to compare two objects in javascript?

0 answers
14 points

I whould like to compare two objects in javascript but it it doesn't work.

// ONLINE-RUNNER:browser;

var val_1 = {
  name: 'test',
  age: 25

var val_2 = {
  name: 'test',
  age: 25

console.log(val_1 == val_2)

What I am doing wrong?

0 answers

Checkout latest Findings & News:

Checkout latest questions:

Checkout latest wiki articles:

Hey 👋
Would you like to know what we do?
  • Dirask is IT community, where we share coding knowledge and help each other to solve coding problems.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.
Read more