I'm starting with the issue of scripts
in html
and I can not get this to work:
<!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>
I missed the error in the browser:
Uncaught ReferenceError: readvalue is not defined
I also need to work with that string
in two more functions.
Any help on how to handle this?