JSFiddle - React, Tailwind, and code Playground

by Qwerty_Wasd

JavaScript

const v4 = (x, y) =>  {
  if(x*x*x + 0.5*x + 5.6 == y) console.log('Первому')
  else if(x*x + x == y) console.log('Второму')
  else console.log('Нет')
}

const v4 = (x, y) => console.log(x*x*x + 0.5*x + 5.6 === y ? `First` : );