There’s a long list of things that can go wrong in script which can generate error in you script. Some of them are:
• Missing punctuation
In JavaScript their are a lot of opening and closing and brackets for e.g. , if you write alert(‘print’; without closing parenthesis these type of error comes under Missing punctuation error and can be easily solved.
• Missing quote marks
These type of errors are generated when we forget to use opening or closing quote mark or if we mixed two quote mark in the String e.g. alert(print) or alert(‘print”); in these case you will get the error saying that “Uncaught Syntax Error: Unexpected token ILLEGAL” error.
• Misspelling Commands
These type of errors are generated when we misspell a JavaScript command e.g. aler(‘print’); in these case you will get the error saying that “Uncaught ReferenceError: aler is not defined”
• Syntax Error
These type of errors are generated when we make some syntax mistake in your code.
Stay tuned for the PHP Magento, WordPress, JavaScript and Magento2 latest tutorial and updates, Hope you enjoyed reading, if you need the professional Magento Development / PHP we can help you, just Click on the Link and send me your requirements.
Please Like the Post on Facebook or Google+.