JSFiddle - React, Tailwind, and code Playground
by bowheart
JavaScript
const operators = ['+', '-', '*', '/']
const findThings = (numbers, equals) => {
const numOperators = numbers.length - 1
for (let i = 0; i < numbers.length; i++) {
for (let j = 0; j < numbers.length; j++) {
if (i === j) continue
document.body.innerText += `${numbers[i]}`
}
}
}
const result = findThings([1, 4, 2, 8, 7], )
console.log(result)