You have an upper case “I” in If (...
. Change it to lower case: if (...
. JavaScript is case-sensitive.
More Related Contents:
- How do I remove a property from a JavaScript object?
- Dynamically access object property using variable
- Test for existence of nested JavaScript object key
- Sorting object property by values
- How to create an object property from a variable value in JavaScript? [duplicate]
- Why is null an object and what’s the difference between null and undefined?
- Remove array element based on object property
- Is it possible to get the non-enumerable inherited property names of an object?
- Getting the object’s property name
- How to set a Javascript object values dynamically?
- Access object properties within object [duplicate]
- Access JavaScript property case-insensitively?
- Watch for object properties changes in JavaScript [duplicate]
- how to access object property using variable [duplicate]
- Can a JavaScript object property refer to another property of the same object? [duplicate]
- How do I access properties of a javascript object if I don’t know the names?
- Get object property name as a string
- How to create Javascript constants as properties of objects using const keyword?
- Accessing an object property with a dynamically-computed name
- How to prevent automatic sort of Object numeric property?
- JavaScript object literal length === undefined?
- Are there limits to the number of properties in a JavaScript object?
- How to check null objects in jQuery
- “Uncaught SyntaxError: Unexpected token , ” when create my object javascript
- JavaScript: Object Rename Key
- Converting a JS object to an array using jQuery
- Most efficient way to convert an HTMLCollection to an Array
- Parse JSON String into a Particular Object Prototype in JavaScript
- Merge multiple objects inside the same array into one object [duplicate]
- What is the JavaScript equivalent of var_dump or print_r in PHP? [duplicate]