A number of syntax issues have been raised as issues already, but there are a number of smaller ones that your team should likely go through. As an example:
There is an invalid semicolon at the end of the curly brace ending the if block. may cause code to break if commands are not properly completed. use an online validation tool such as https://beautifytools.com/javascript-validator.php , or your Visual Code Editor may support internal javascript checking , ex. vscode-jshint
A number of syntax issues have been raised as issues already, but there are a number of smaller ones that your team should likely go through. As an example:
There is an invalid semicolon at the end of the curly brace ending the if block. may cause code to break if commands are not properly completed. use an online validation tool such as https://beautifytools.com/javascript-validator.php , or your Visual Code Editor may support internal javascript checking , ex. vscode-jshint