Tag: syntax

6893 What does "use strict" do in JavaScript, and what is the reasoning behind it? 2009-08-26T16:10:13.827

6215 var functionName = function() {} vs function functionName() {} 2008-12-03T11:31:07.473

2242 How to concatenate string variables in Bash 2010-11-15T05:38:35.240

1717 What does ** (double star/asterisk) and * (star/asterisk) do for parameters? 2008-08-31T15:04:35.350

1488 Why does ++[[]][+[]]+[+[]] return the string "10"? 2011-08-26T08:46:14.277

1166 Insert into ... values ( SELECT ... FROM ... ) 2008-08-25T12:45:56.930

1135 How do I iterate over a range of numbers defined by variables in Bash? 2008-10-04T01:38:43.777

1040 Comments in Markdown 2011-01-28T00:18:11.507

913 What does "static" mean in C? 2009-02-21T06:47:52.017

895 How do I convert a float number to a whole number in JavaScript? 2009-02-27T20:15:07.317

843 How do you comment out code in PowerShell? 2011-09-08T02:43:10.283

840 How can I do a line break (line continuation) in Python? 2008-09-09T23:45:30.293

777 How to escape single quotes within single quoted strings? 2009-08-08T22:50:10.983

694 What is the difference between single-quoted and double-quoted strings in PHP? 2010-08-10T05:12:56.133

678 Can someone explain __all__ in Python? 2008-09-04T21:28:18.547

626 What is the difference between . (dot) and $ (dollar sign)? 2009-06-02T16:06:36.640

589 Python integer incrementing with ++ 2010-04-13T19:45:14.257

585 Putting a simple if-then-else statement on one line 2010-05-10T12:58:04.050

581 Are (non-void) self-closing tags valid in HTML5? 2010-08-24T15:28:40.037

579 How to use double or single brackets, parentheses, curly braces 2010-02-02T22:22:54.043

534 Why is whitespace sometimes needed around metacharacters? 2014-01-17T13:03:05.320

527 All possible array initialization syntaxes 2011-04-15T14:27:05.473

503 How do you pass a function as a parameter in C? 2008-08-13T02:16:32.520

501 Is it possible to insert multiple rows at a time in an SQLite database? 2009-10-22T20:04:42.983

494 When do we need curly braces around shell variables? 2012-01-05T19:54:03.940

482 What does the star operator mean? 2010-05-27T14:10:38.667

465 What does map(&:name) mean in Ruby? 2009-08-01T17:35:58.873

440 Multiline strings in JSON 2010-03-06T14:29:52.983

420 Command not found error in Bash variable assignment 2010-02-15T18:32:30.140

382 How to do an update + join in PostgreSQL? 2011-10-23T22:09:23.497

381 Is double square brackets [[ ]] preferable over single square brackets [ ] in Bash? 2009-03-21T15:28:45.137

376 What is Ruby's double-colon `::`? 2010-06-09T20:03:36.110

376 Is C++ context-free or context-sensitive? 2013-01-29T18:05:56.800

374 Difference between single and double quotes in Bash 2011-07-14T17:55:27.297

364 How to concatenate strings in twig 2011-10-09T14:37:53.667

361 What does the "at" (@) symbol do in Python? 2011-06-17T23:19:30.140

351 How do I remove javascript validation from my eclipse project? 2010-06-28T11:20:39.947

344 What's the meaning of "=>" (an arrow formed from equals & greater than) in JavaScript? 2014-07-23T02:27:02.970

343 JavaScript property access: dot notation vs. brackets? 2011-02-11T11:21:46.053

340 Explain the encapsulated anonymous function syntax 2009-10-27T23:23:11.447

338 Why are hexadecimal numbers prefixed with 0x? 2010-04-19T20:33:01.380

335 What is the meaning of prepended double colon "::"? 2010-11-24T16:24:24.750

334 Can you use a trailing comma in a JSON object? 2008-10-14T16:02:15.823

334 Why avoid increment ("++") and decrement ("--") operators in JavaScript? 2009-06-09T17:02:28.027

333 What is the difference between '/' and '//' when used for division? 2008-10-08T17:16:35.830

328 How to escape % in String.Format? 2011-02-16T02:31:32.830

327 Best way to "negate" an instanceof 2012-01-30T17:35:34.900

323 How do I modify a MySQL column to allow NULL? 2008-10-17T16:52:23.053

318 How to convert Set to Array? 2013-11-19T11:06:39.560

314 How do you express binary literals in Python? 2008-08-04T18:20:36.487

314 int a[] = {1,2,}; Weird comma allowed. Any particular reason? 2011-08-12T16:36:30.580

304 How do you format an unsigned long long int using printf? 2008-08-05T20:59:29.330

298 Ternary operator (?:) in Bash 2010-10-17T14:38:52.120

297 Difference between >>> and >> 2010-05-11T14:02:19.820

294 What is the formal difference in Scala between braces and parentheses, and when should they be used? 2010-12-08T09:53:03.293

293 In Ruby, how do I skip a loop in a .each loop, similar to 'continue' 2010-11-19T23:32:30.273

279 What is the purpose of "&&" in a shell command? 2010-12-22T15:22:20.810

278 How can I split a shell command over multiple lines when using an IF statement? 2013-09-03T19:10:19.540

277 What is this weird colon-member (" : ") syntax in the constructor? 2009-11-10T23:29:48.433

274 Block Declaration Syntax List 2012-02-08T21:13:48.487

272 What do parentheses surrounding an object/function/class declaration mean? 2009-01-13T20:48:07.257

271 What is the 'open' keyword in Swift? 2016-08-14T22:17:37.180

266 Understanding implicit in Scala 2012-04-29T20:19:09.113

265 Why is list initialization (using curly braces) better than the alternatives? 2013-08-14T03:56:12.220

260 Do I need quotes for strings in YAML? 2013-10-01T07:00:47.090

259 Why should I use a semicolon after every function in javascript? 2009-12-02T17:51:50.833

259 What does the `forall` keyword in Haskell/GHC do? 2010-06-18T15:50:00.910

255 Case statement with multiple values in each 'when' block 2012-04-17T18:51:42.003

251 Is there a standardized method to swap two variables in Python? 2013-02-12T15:43:55.253

249 What does the question mark and the colon (?: ternary operator) mean in objective-c? 2010-04-07T19:44:04.417

247 How is "int main(){(([](){})());}" valid C++? 2012-11-28T10:50:15.457

245 "elseif" syntax in JavaScript 2010-10-23T19:06:15.750

243 How to make "if not true condition"? 2012-05-11T13:51:37.000

242 Else clause on Python while statement 2010-07-21T02:49:05.393

235 Ruby - test for array 2009-10-06T20:21:07.973

233 Is there a goto statement in Java? 2010-03-30T12:30:26.557

232 No Multiline Lambda in Python: Why not? 2009-08-05T14:00:30.367

227 Add a property to a JavaScript object using a variable as the name? 2009-03-29T18:00:58.403

227 SQL left join vs multiple tables on FROM line? 2009-05-21T18:53:56.793

224 What does the exclamation mark mean in a Haskell declaration? 2009-06-14T16:07:47.863

224 Java method with return type compiles without return statement 2015-06-25T12:14:57.283

223 How do you create a static class in C++? 2008-08-12T23:35:00.613

223 Accessing dict keys like an attribute? 2011-02-13T14:23:18.633

220 How do I syntax check a Bash script without running it? 2008-10-05T12:51:25.120

212 What does the plus sign do in '+new Date' 2008-10-21T11:39:57.583

212 Single vs Double quotes (' vs ") 2010-03-03T16:37:25.517

208 What is the C# Using block and why should I use it? 2008-10-17T13:49:20.583

208 Question mark and colon in JavaScript 2009-11-20T16:54:34.493

207 ASP.NET "special" tags 2009-03-16T06:27:46.537

197 Arrow operator (->) usage in C 2010-04-04T16:21:12.090

197 `from ... import` vs `import .` 2012-02-24T23:24:31.700

194 javascript function leading bang ! syntax 2011-04-29T02:41:29.793

193 Why does calling a function in the Node.js REPL with )( work? 2013-10-11T05:22:48.323

192 C# - Keyword usage virtual+override vs. new 2008-10-01T22:06:52.400

191 In PHP, why does </script> not show a parse error? 2012-11-05T08:20:50.870

190 Syntax of for-loop in SQL Server 2011-05-20T07:55:22.650

185 What is python .. ("dot dot") notation syntax? 2017-04-19T06:15:59.393

181 Is there a difference between `continue` and `pass` in a for loop in python? 2012-02-28T14:42:50.090

176 What is :: (double colon) in Python when subscripting sequences? 2010-08-10T20:21:53.817