Facebook – https://www.facebook.com/TheNewBoston-464114846956315/
GitHub – https://github.com/buckyroberts
Google+ – https://plus.google.com/+BuckyRoberts
LinkedIn – https://www.linkedin.com/in/buckyroberts
reddit – https://www.reddit.com/r/thenewboston/
Support – https://www.patreon.com/thenewboston
thenewboston – https://thenewboston.com/
Twitter – https://twitter.com/bucky_roberts
Original source
50 responses to “Beginner JavaScript Tutorial – 3 – Variables”
when I do the var stuff while having getElementByID, nothing is showing up on the chrome? but when I remove the var, stuff I wrote shows up
very well explained, what a variable is. thnx
I am guessing you can use number for a var name if you start it with an underscore. Like this, var _404 = "Zip Code";
document.write(_404);
document.write is not working in my google chrome…??
you forgot to mention that you can't use key words as variables like var
man u are the best teacher thanks alot and again ……………
can so use dollar signs
For some unknown reason my javascript code is not working/running in the browser. I am making a simple quoting generator with html & javascript, but it wont run in the browser. Can you please help me?
I using a new(er) version of NotePad++, and if I type in what he did and did exactly that, it shows up as "var x = 32; document.write (x)" like that's exactly how it shows up. Maybe because the newer versions have a different way of doing it? I don't know. If anyone could help me with that, I'd appreciate that very much. Thnx!
If you know Java/C++/C#/C or Python then tutorial 3 to 16 is total easy for you.
Actually it is possible to use dollar sign for variables. for example the following code worked just fine for me:
var $number = 30;
document.write($number);
4:21 Uppercase sex !!!
Danke Bucky ???✌️???
i dont hear any sound in all videos please help me …
But a variable name can CONTAIN a number… just cant START with one
keep up the good work… bucky….. extraordinary teaching skills u have ….
bro when we type var x=32; document.write(z); output should be z why it is empty
it's kind of funny to see the first few tutorials gets lots of views then the views just stop dropping, like college dropouts haha
yey like lua <3
Awsome!
at 6:00 u forget to change document.write(bucky) to document.write(6bucky) to prove you were telling the true. but i test it my self XD
you forgot to mention that you can't use key words as variables like var
LOL! Say "Uppercase X" very fast!
Don't make us hungry
Thank you very much! was stuck here for days… U the real MVP man.
This video made me hungry from the start…. HAAAMM…. ROAST PIIIIGGG
Very useful information thank you God bless you!
x=5;
y=10;
z=x+y;
document.write(z);
The above code is working and printing 15.
So do i have to write "var"?
good tutorials, bucky. Just wanted to mention (though someone possibly done already) that dollar sign – $ actually can be used in variables names.
Uppercase sex
thanks a lot…..
i am in preschool wtf is this shit
when i write codes in extension file of javascript it doesn't work why it happens i have attached file to a html file still it not works
im in second grade whoops XD
variables in informatics aren't the same as in maths though
how do we assign a string to variable ?
did you make a tutorials for jquery ? (you)
I'm goin into 6th grade so I remembered 5th grade easily
Thank you very much for this lesson.
GOD bless you.
Wait. I don't use 'var'. Does it matter? My code still works fine. Someone please tell me. I don't get it.
Explained well, thanks a lot!
regard the bucky hero :*
mahn, my teacher taught me that a variable is sumthin which isnt constant or which can change not as u said " a place holder"….
I think we were meant to be together, seeing how you love ham… I am a ham…
Is it just me or do u love ham and bacon bucky xD
The only bad thing is that more people are interested in games(gamers) than programming! Tnx btw
Thank U
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa to meany rules seen this 3 times that half video of rule now a little understand means var name always start by alphabets some time if we want can use underscore its time to sleep now
Does Javascript have variables? No.
Variables only exist in computer languages that assign actual memory addresses.
Javascript has names. Names are tags to objects within the Javascript Virtual Computer (JVC). Names are handles to JVC objects.
The JVC has things inside called objects, which it lets us use to represent our concepts. JVC objects have fields of data with associated names. The data can be of two kinds, attribute data, and code data.
Attribute data describe the current state of something. Code data tells the JVC to do action when commanded to do so.
i fell a sleep.
thanks anyway