Question from the Javascript test

Compare two numbers in Javascript

Medium

What's the exit?

const val1 = 8;
const val2 = new Number(8);
const val3 = 8;

console.log(val1 == val2);
console.log(val1 === val2);
console.log(val2 === val3);
Author: Vincent CotroStatus: PublishedQuestion passed 232 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!