Estoy iniciándome con el tema de los scripts
en html
y no consigo que esto funcione:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tests</title>
<script>
readvalue();
sum();
result();
</script>
</head>
<body>
<script>
function readvalue(){
var string = window.prompt("Enter the information", "");
}
function sum(string){
}
</script>
</body>
</html>
Me salta el error en el navegador de:
Uncaught ReferenceError: readvalue is not defined
Tambien necesito trabajar con ese string
en dos funciones mas.
¿Alguna ayuda de como manejar esto?