I'm not very knowledgeable about JavaScript. I need to convert this check below that is in PHP to JavaScript.
How can I do this?
$verificao = $_POST['verificacao_name'];
$pesquisa1 = $_POST['p1'];
$pesquisa2 = $_POST['p2'];
if (($verificacao == 2) and
(($pesquisa1 <= 8 and $pesquisa1 != 0) or
($pesquisa2 <= 8 and $pesquisa2 != 0) or
($pesquisa3 <= 8 and $pesquisa3 != 0))) {
echo 'Erro';
else{
echo 'Ok';
}