SyntaxError: Invalid shorthand property initializer error comes when we use the equals operator rather than a colon to separate key-values(properties) in the object. To resolve this issue, we need to use a colon(:) rather than the equals operator(=) between the key and values of an object. Let’s see with the help of an example: Notice… Continue reading Resolve SyntaxError: Invalid shorthand property initializer in JavaScript