JS

JavaScript ES6 - Array find() with code example

2.

Consider the array below. What will be the output of the find() method?

const numbers = [50, 60, 80, 120, 200];
const result = numbers.find(num => num > 100);
console.log(result);

undefined

120, 200

120

80