Top "Syntax" questions

Syntax refers to the actual language elements and symbols themselves.

var functionName = function() {} vs function functionName() {}

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the …

javascript function syntax idioms
What does "static" mean in C?

I've seen the word static used in different places in C code; is this like a static function/class in …

c syntax static
Shell script "for" loop syntax

I have gotten the following to work: for i in {2..10} do echo "output: $i" done It produces a bunch of …

unix syntax shell
How do you comment out code in PowerShell?

How do you comment out code in PowerShell (1.0 or 2.0)?

powershell syntax powershell-2.0 comments
How do you format an unsigned long long int using printf?

#include <stdio.h> int main() { unsigned long long int num = 285212672; //FYI: fits in 29 bits int normalInt = 5; printf("My …

c syntax printf format-specifiers long-long
What does ** (double star/asterisk) and * (star/asterisk) do for parameters?

In the following method definitions, what does the * and ** do for param2? def foo(param1, *param2): def bar(param1, **param2):

python syntax parameter-passing variadic-functions argument-unpacking
How do I break a string over multiple lines?

In YAML, I have a string that's very long. I want to keep this within the 80-column (or so) view …

string syntax yaml newline
Are multi-line strings allowed in JSON?

Is it possible to have multi-line strings in JSON? It's mostly for visual comfort so I suppose I can just …

json string syntax multiline
All possible array initialization syntaxes

What are all the array initialization syntaxes that are possible with C#?

c# arrays syntax array-initialization
JavaScript error (Uncaught SyntaxError: Unexpected end of input)

I have some JavaScript code that works in FireFox but not in Chrome or IE. In the Chrome JS Console …

javascript jquery syntax syntax-error indentation