JSFiddle - React, Tailwind, and code Playground

JavaScript

function summa(i, j) {
	if (i + j < 10){
  alert('доступ открыт');
  }else {
  alert('доступ закрыт');
  }
}
summa(3,7);