I am learning Js, and when trying to make a system that: 1. Take the user speed> 2. Compare with the speed allowed on road 3. > ask the user if he was within speed or not. however, when I perform absolutely nothing happens, I have reviewed it thousands of times, looked for syntax errors and still does not run. You can help me?
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sist. De Multas</title>
</head>
<body>
<h1>DETRAN</h1>
Velocidade de tráfego: <input type="number" name="txtvel" id="txtvel"> Km/h>
<input type="button" value="Verificar" name="button">
<div id="res">
Resultado da verificação:
</div>
<script>
function calcular(){
var calcular = valor.addEventListener('click', calcular)
var txtv = document.getElementById(txtvel)
var conversor = Number(txtv.value)
res.innerHTML = <p>`Sua Velocidade é de ${conversor}`</p>
if(conversor > 60){
res.innerHTML = <p>`Multa pendente no sitema por excesso de velocidade ${conversor}Km/h`</p>
}else{
res.innerHTML = 'Sem multa pendente'
}
}
</script>
</body>
</html>