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
35 responses to “Javascript Tutorial – 4 – More on Variables”
2008?!?! Wow that's along time ago (it's now almost 2014)
I guess he said we don't use " " for numbers
i am not just a variable..
It is because "tony" is a string, meaning it has letters and therefore has to be declared. 80 is a integer, so it does not need the quotations.
I just don't get why in the first variable you are using " " to declare that variable..
Example:
var name="tony";
In the second example of this vid you ar not using " " to declare you variable..
Example:
var num1=80;
Can anybody help me to understand this?
the semi was not really needed after the answer's ")"
what were you smoking while making this dude!
and that is how you use variables in javascript ^^
Are you an African or American? We are learning….
var penis = "big"
alert(penis);
output: big
THANKS SO MUCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCHHHHHHHHH
time
u rock but, drink some coffee next tie
ran out of coffee again
@MMinecrafTT eclipse is for java n notepad++ is the universal text editor……..for javascript you have to use notepad++……..
I know c
I know c++
I know python
I learning java
but I still don't know how to use an italian key board with american key board settings
var x = Math.random()*100
if (x >= 18){
// ( >= means less than or equal to.)
alert("you are 18 or over. go check out the site!");
}else{
alert("sorry you are too young");
}
@CharlBrazle If you check the dates uploaded the previous video was uploaded 2009 and this one 2008
so i can use eclipse or notepad++ ??
Hehe you sound diffrent from the previous tutorial. Did you get cold or something? 🙂
@awsomeguy5001 Before watching this learn HTML, gosh…
how do you open it up on the internet
This code contains a secret: alert(String.fromCharCode(116,104,101,110,101,119,98,111,115,116,111,110,32,105,115,32,97,32,102,97,103,103,111,116))
@jacobmayday Dude… This is the 4th video.
dude i can't hear what your saying at all!
hi do u teach ASP.net
var welcome = ("Welcome ");
var agent = ("Agent ");
var killer = ("00");
var seven = 7;
alert(welcome + agent + killer + zero);
my name was Tony, but he forced me to change it to Bob!
3rd video 3rd x he's out putted a name..move on mate
@DiceKinz
try this
var name = (14+32*55/4);
alert (name)
var name=(14+32*55/4);
alert("name");
Doesnt work for me.
It says:
Script: (path of the thing)
Line: 2
Char: 1
Error: Object Expected
Code: 800A138F
Source: Microsoft JScript runtime error
Thanks for all those useful vids & tips… Very nice man!
I like, it's cleary explained, it's cool.
i learn a lot than school…..in youtube this vedio =100/100
Why do you have to save it as .html unstead of .js