0
function InicirContagem(){
var vinicio = document.getElementById('txtInicio')
var res = document.getElementById('Resposta')
//var vn = Number.parseInt(vinicio);
res.innerHTML=` era para aparecer o valor aqui: ${vinicio}`
}
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Modelo de Exercìcio</title>
<link rel="stylesheet" href="estilo016.css">
</head>
<body>
<header>
<h1> Contar Números </h1>
</header>
<section>
inicio : <input type="number" id="txtinicio" min = '0'>
<input type="button" value="Verificar" onclick="InicirContagem()">
<div id = "Resposta">
Preparando a contagem...
</div>
</section>
<footer> <p>© GrauTécnico INFO 03.</p>
</footer>
<script language="javascript" type="text/javascript" src="script016.js"></script>
</body>
</html>
Is appearing
null
and not Nan.– Sam