This video is all about variables. I talk about what a variable is, how to name a variable, how to declare a variable, and how to assign a value to a variable. Everything a JavaScript beginner needs to know about variables.
Sponsored by DevMountain. Get yourself career ready, check out their website: http://goo.gl/enNbQV
Don’t forget to subscribe:
http://www.youtube.com/user/QuentinWatt
For collaborations and business inquiries, please contact via Channel Pages: http://ChannelPages.com/QuentinWatt Social links:
————————————————————-
Add me on twitter:
Tweets by QuentinWatt
facebook group:
https://www.facebook.com/quentin.watt
————————————————————-
Original source
23 responses to “Javascript beginner tutorial 4 – Variables”
Enjoying this series … Subbed โ๐ Thanx
omg, i am so lucky your channel exists! Thankyou so much! ๐
Names can contain letters, digits, underscores, and dollar signs.
Names must begin with a letter
Names can also begin with $ and _ (but we will not use it in this tutorial)
Names are case sensitive (y and Y are different variables)
Reserved words (like JavaScript keywords) cannot be used as names
I'm not in highschool, I'm in 3rd grade!
good teaching
nice to learn
Assignment operator… What a.. funny term. I'm glad I won't be writing any exams soon. Good to know tho.
Thanks!
You are a life saver, I wish I found your tutorials earlier! Everything is starting to make sense now ๐
Is it possible to concatenate text with variable value.
Im in elementry school
why we cannot put double cott in variable name
Dude, seriously your videos have been really helpful;. Thanks a lot. I'll give you good recommendations at any instant i get.
Hey Quentin,
What about the link you promised (5:02) what words not to use as variables?
BTW, Best JavaScript tuts on the net! Thanks a lot ๐
is the variable need to be in quotation marks like name = "Quentin" or it works without quotation as well……
what is console.log(); is it another function that can work instead of document.type();
You have a very easy to listen to voice and your tutorials are easy to understand and follow, so thank you for taking that time to make these video's!
why is it showing var myVariable = 20; document.write(myVariable); instead of only 20?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8*/>
<title> JavaScript – Variables </title>
<script type="text/javascript">
var myVariable = 20;
print(myVariable);
</script>
</head>
<body>
</body>
</html>
Many thanks.
+Quentin Watt
how we can put text in a var
I have been using Codeacademy which is a good tutorial. However, there is a lack of explanation at time. These YouTube videos by Mr. Watt are very helpful. It explains why I have been doing what I've been doing in the other tutorial.
Thanks Queue!
variables are not shows in safari. undefined getting a message saying,"undefined". any suggestions on whats going on?