Top "Syntax-error" questions

A syntax error occurs when a program does not follow the syntactical rules of the programming language.

How to solve SyntaxError on autogenerated manage.py?

I'm following the Django tutorial https://docs.djangoproject.com/es/1.10/intro/tutorial01/ I've created a "mysite" dummy project (my very …

python syntax-error
Ternary operators in JavaScript without an "else"

I've always had to put null in the else conditions that don't have anything. Is there a way around it? …

javascript optimization syntax-error
Checking whether the pip is installed?

I am using Python 2.7.12 and I want to check whether the pip is installed or not. For this, in command …

python python-2.7 pip syntax-error
Unexpected token < in first line of HTML

I have an HTML file : <!DOCTYPE HTML> <html lang="en-US" ng-app="Todo"> <head> <…

javascript html angularjs syntax-error uncaught-exception
json Uncaught SyntaxError: Unexpected token :

Trying to make a call and retrieve a very simple, one line, JSON file. $(document).ready(function() { jQuery.ajax({ type: …

jquery ajax json syntax-error
Syntax error: Illegal return statement in JavaScript

I am getting a really weird JavaScript error when I run this code: <script type = 'text/javascript'> var …

javascript syntax-error
How to use Switch in SQL Server

I want to use CASE in my stored procedure. I am getting some syntax error in my code: select case @…

sql-server switch-statement syntax-error
C error: Expected expression before int

When I tried the following code I get the error mentioned. if(a==1) int b =10; But the following is syntactically …

c syntax-error conditional-statements variable-declaration
unexpected T_VARIABLE, expecting T_FUNCTION

I am expecting this to be a basic syntax error I overlooked, but I can't figure it out. In a …

php sqlite syntax-error