Top "Variables" questions

THIS IS AMBIGUOUS; USE SPECIFIC-LANGUAGE TAGS WHENEVER APPLICABLE.

Determine if variable is defined in Python

How do you know whether a variable has been set at a particular place in the code at runtime? This …

python variables defined
Static variables in JavaScript

How can I create static variables in Javascript?

javascript variables static closures
VBA: Selecting range by variables

I want to select the formatted range of an Excel sheet. To define the last and first row I use …

vba variables range selection
Create timestamp variable in bash script

I am trying to create a timestamp variable in a shell script to make the logging a little easier. I …

bash variables timestamp
How do I pass JavaScript variables to PHP?

I want to pass JavaScript variables to PHP using a hidden input in a form. But I can't get the …

php javascript variables
Check if object exists in JavaScript

How do I verify the existence of an object in JavaScript? The following works: if (!null) alert("GOT HERE"); But …

javascript debugging variables null undefined
Length of string in bash

How do you get the length of a string stored in a variable and assign that to another variable? myvar="…

bash variables string-length
How to combine two strings together in PHP?

I don't actually know how to describe what I wanted but I'll show you: For example: $data1 = "the color is"; $…

php string variables combinations
What is the scope of variables in JavaScript?

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a …

javascript function variables scope var
What is the naming convention in Python for variable and function names?

Coming from a C# background the naming convention for variables and method names are usually either camelCase or PascalCase: // C# …

python variables function naming-conventions