the value of the property “if” is null or undefined, not a Function object [closed]

You have an upper case “I” in If (.... Change it to lower case: if (.... JavaScript is case-sensitive.

Leave a Comment