Comparing betweent fields value

i would like to compare between many fields value “number” and show String result at the end

HTML

<!DOCTYPE html>

<title>Calculate</title>
<html>
<!-- <link rel="stylesheet" href="style.css"> -->

<script src="script.js"></script>

<body class="main">
    <form id="div1">

        <br>First name </br>
        <input type="number" id="num1" name="num1">

        <div>
            <br>Second name </br>
            <input type="number" id="num2" name="num1">
        </div>
    </form>
    <p>
        <button id="Check" onclick="calculation()">Calc</button>
    </p>
    <h2 id="result"> hello</h2>

</body>

</html>

------ script --------

function calculation() {

    // var field1 = document.getElementById("num1").Value;
    // var field2 = document.getElementById("num2").Value;

    if (document.getElementById("num1").Value >= 5 && (document.getElementById("num2").Value >= 5)) {
        alert("121212");

    } else {
        alert("0000");
    }
}

thanks , I feel like stupid :sweat_smile: