Comparing betweent fields value

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


<!DOCTYPE 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">

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



------ 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)) {

    } else {

JavaScript is case-sensitive. There is no “Value” property. There is a “value” property though.

thanks , I feel like stupid :sweat_smile: