0
const arr = [10]

console.log(arr == 10) // true
console.log(arr < 10) // false
console.log(arr > 2) // true

arr is array but comparing with the number is possible

How is this operation possible?

3

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.