EN
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