Version 1.0.0-14

T1A06 Varaibles by Fer.html


To my main page
Good reference to Variables in Javascript and other languages

Other Languages use: bool, int, float, char, string, int_8, int_16 etc
Note: Javascript does use var and let for local variables.
For Global variables Mr. Ellis prefers to use document.myVarName

Example input output code

                let myIn01 = document.getElementById('myText01').value
                document.getElementById('myDiv01').innerHTML = myIn01 
            

Example working code




...


Time for some personal examples
Please, enter the age of a real friend:
Now, enter your friend's favourite color:
Finally, enter your friend's name:

...

This one uses arrays



...

Now we have a variable that stores your points and other that stores your clicks

Hit a ballon to start

Now we have different forms of adding points and some randomness
You have Standart multiplier


Hit a bad guy to start...