Questions tagged as 'variables-globales'

1
answer

Javascript: Example with Scope and Closures

I was looking for information about Scope and Closures, and I thought I had already understood it, when I see this example on the page that was the information: let a = 1; const function1 = function() { console.log(a); a = 2; }; a = 3;...
asked by 15.07.2018 / 07:04
0
answers

Problem with variables and objects. Supestamente local variable behaves as global

I'm doing a code and this happens to me: First I made this class with the intention of using it as if it were a structure of those of C and C ++ class Data: titulo = [] id = [] fecha=[] Then I did a function where I gave values to...
asked by 18.06.2018 / 17:28
0
answers

Create unlockable levels in Android Studio with a global variable

Good day I want to create a global variable with which depending on the number of the variable unlocking levels, but here a problem arises because in level 1 that is where you start I need to put the maximum score to compare it with the score th...
asked by 24.06.2018 / 19:29
2
answers

How can I create several global variables in Winforms C #?

I mean, for example, that you have a variable called "A" in a form 1 and that you can change the value of "A" from form 2 or 3 (all)     
asked by 12.03.2018 / 18:37
3
answers

Create global variables

I am quite new to the Python syntax in particular such as creating global, nonlocal and local variables and how to declare them without syntax errors . For example in the next program, I have # Estamos creando el juego de Piedra, papel o t...
asked by 23.05.2016 / 21:37
0
answers

Pass text field value to php variable [closed]

How could I pass the value of a text field to a php variable without sending from a formulation I do not have much knowledge in ajax to say nothing     
asked by 31.10.2018 / 01:46