Tag: variables

7654 How do JavaScript closures work? 2008-09-21T14:12:07.003

1776 What is the scope of variables in JavaScript? 2009-02-01T08:27:19.853

1703 How to determine if variable is 'undefined' or 'null'? 2010-04-15T18:12:16.507

1559 How do you check if a variable is an array in JavaScript? 2009-04-20T09:02:59.553

1377 JavaScript check if variable exists (is defined/initialized) 2011-02-25T03:44:47.660

1158 How to check if a variable is set in Bash? 2010-08-30T14:54:38.197

1001 "Notice: Undefined variable", "Notice: Undefined index", and "Notice: Undefined offset" using PHP 2010-11-23T21:26:54.170

794 How to check a not-defined variable in JavaScript 2009-05-13T14:09:45.407

698 How to trim whitespace from a Bash variable? 2008-12-15T21:24:01.093

661 How do I check if a variable exists? 2009-05-09T13:10:31.610

627 Static variables in JavaScript 2009-10-08T04:31:25.337

592 What is the naming convention in Python for variable and function names? 2008-10-01T21:01:16.757

542 How to check if type of a variable is string? 2011-01-30T13:32:19.477

490 What is the purpose of the single underscore "_" variable in Python? 2011-05-05T05:44:18.527

466 Capturing multiple line output into a Bash variable 2009-03-05T04:32:18.437

466 MySQL: @variable vs. variable. What's the difference? 2009-06-17T23:04:00.137

447 Is there a better way of writing v = (v == 0 ? 1 : 0); 2011-08-02T11:22:54.547

418 Define global variable in a JavaScript function 2011-04-26T06:36:57.937

389 How to add elements to an empty array in PHP? 2009-03-24T09:35:00.250

346 Static vs class functions/variables in Swift classes? 2015-04-14T20:17:26.267

322 Determine if variable is defined in Python 2009-10-20T05:03:36.417

313 Length of string in bash 2013-06-28T15:14:59.900

312 How to check if element exists in the visible DOM? 2011-04-12T02:19:05.483

295 Difference between declaring variables before or in loop? 2009-01-02T16:06:40.397

291 Append integer to beginning of list in Python 2013-07-28T17:54:33.540

289 Is there any way I can define a variable in LaTeX? 2009-07-31T10:46:15.593

287 Declaring Multiple Variables in JavaScript 2009-03-29T04:37:25.027

284 Is it possible to print a variable's type in standard C++? 2008-09-17T10:34:44.013

283 JavaScript OR (||) variable assignment explanation 2010-01-20T10:53:26.443

281 How to use a variable for a key in a JavaScript object literal? 2010-02-16T16:05:24.707

279 Semantic Issue: Property's synthesized getter follows Cocoa naming convention for returning 'owned' objects 2011-06-13T07:00:41.277

273 Set environment variables from file of key/pair values 2013-10-12T07:01:29.963

268 Printing all global variables/local variables? 2011-06-07T06:32:32.447

266 Create timestamp variable in bash script 2013-06-12T13:03:33.010

260 Check if object exists in JavaScript 2010-11-15T17:04:55.173

251 Expansion of variable inside single quotes in a command in Bash 2012-12-10T11:10:13.903

240 Pointer vs. Reference 2008-09-22T10:38:32.110

232 Pass Variables by Reference in Javascript 2011-10-12T18:18:08.917

229 Non-static variable cannot be referenced from a static context 2010-04-01T09:57:19.880

228 How to interpolate variables in strings in JavaScript, without concatenation? 2010-07-21T21:28:48.733

224 Test if number is odd or even 2011-10-31T20:17:57.100

222 @ variables in Ruby on Rails 2013-01-14T13:29:59.530

216 Java system properties and environment variables 2011-08-14T04:18:10.993

211 Simpler way to create dictionary of separate variables? 2010-03-31T13:39:10.733

210 Will using 'var' affect performance? 2008-12-10T17:19:45.113

210 const vs constexpr on variables 2012-11-12T15:50:13.817

206 python: how to identify if a variable is an array or a scalar 2013-05-29T06:33:42.277

203 Convert string to variable name in JavaScript 2011-04-10T18:29:49.950

202 Viewing all defined variables 2009-03-11T02:32:55.053

201 What's the scope of a variable initialized in an if statement? 2010-05-13T19:07:45.920

192 Are PHP Variables passed by value or by reference? 2008-08-03T22:51:41.447

189 Is it better in C++ to pass by value or pass by constant reference? 2008-11-06T21:43:00.810

181 Python variable scope error 2008-12-16T03:06:52.557

180 Best way to test for a variable's existence in PHP; isset() is clearly broken 2009-01-06T20:46:50.797

180 PHP - concatenate or directly insert variables in string 2011-04-09T15:39:35.450

179 Why are variables "i" and "j" used for counters? 2010-11-09T19:45:24.803

177 Set variable in jinja 2010-09-16T13:18:12.357

171 Initializing multiple variables to the same value in Java 2011-06-01T14:29:04.020

170 How to get the type of a variable in MATLAB? 2009-02-23T17:27:57.593

170 PHP Pass variable to next page 2009-05-16T06:58:45.773

169 Formatting a float to 2 decimal places 2011-06-15T10:31:25.643

167 How to create module-wide variables in Python? 2009-12-29T22:34:16.443

164 How can I define colors as variables in CSS? 2009-12-09T18:30:12.110

160 How do I put a variable inside a String in Python? 2010-06-02T19:05:52.760

156 Why is the asterisk before the variable name, rather than after the type? 2008-12-29T19:22:25.443

155 How does an underscore in front of a variable in a cocoa objective-c class work? 2009-05-04T22:48:21.437

154 Multiple left-hand assignment with JavaScript 2009-11-18T19:48:37.857

150 Using braces with dynamic variable names in PHP 2012-02-13T08:32:54.553

147 Modify alpha opacity of LESS variable 2012-10-07T17:26:56.643

144 Javascript Regex: How to put a variable inside a regular expression? 2010-10-27T00:30:47.400

144 Using variables inside a bash heredoc 2011-02-08T20:07:06.073

140 Objective C Static Class Level variables 2009-06-30T11:45:46.720

139 How to use a variable inside a regular expression? 2011-08-03T17:59:41.897

138 How to store standard error in a variable in a Bash script 2009-06-07T16:38:11.657

134 Variable declared in for-loop is local variable? 2011-11-03T09:04:35.483

131 What is the use of a private static variable in Java? 2011-09-02T06:24:14.547

131 How can I pass variable to ansible playbook in the command line? 2015-06-05T08:42:38.950

130 Set "this" variable easily? 2009-01-19T09:09:08.217

130 A more pretty/informative Var_dump alternative in PHP? 2010-01-26T18:18:09.823

129 Calling a JavaScript function named in a variable 2009-11-12T15:59:10.310

127 How to swap two variables in JavaScript 2013-04-24T20:35:13.110

126 Using i and j as variables in Matlab 2013-02-09T19:37:23.460

125 instantiate a class from a variable in PHP? 2009-02-10T20:52:31.997

123 Assigning code to a variable 2014-04-16T20:39:34.817

122 How can you dynamically create variables via a while loop? 2011-02-18T01:14:00.710

120 How to pass JavaScript variables to PHP? 2009-12-16T20:46:04.607

119 Why can't variable names start with numbers? 2008-12-04T21:32:07.043

119 SQL variable to hold list of integers 2013-08-22T04:59:15.317

115 Append to string variable 2009-08-17T13:57:16.330

114 Modify/view static variables while debugging in Eclipse 2009-04-29T06:55:41.237

114 How to split one string into multiple variables in bash shell? 2012-05-09T16:54:57.317

113 How do you know a variable type in java? 2010-04-20T11:17:23.887

110 Mixing PHP variable with string literal 2011-03-20T13:54:56.503

109 What is the difference between an int and a long in C++? 2008-11-07T02:39:53.410

109 Declaring variables inside a switch statement 2009-08-05T04:31:31.273

108 How do you use script variables in psql? 2008-08-31T16:54:33.183

108 Bash script - How to reference a file for variables 2011-03-08T04:27:52.533

107 What is the exact meaning of IFS=$'\n'? 2010-11-08T21:26:24.877

105 Where do I find the definition of size_t? 2009-07-13T13:14:10.277