(adsbygoogle = window.adsbygoogle || []).push({});
Today i will be starting a tutorial on java script, every day i will come and update this thread for you guys. If you already know java script then this isn't the place for you. I will start advanced tutorials after i get the basics done. This is for beginners who would like to learn java script.
The syntax and how to set it up
To learn variables all we simply need to do is cut of iables, that's right! its pretty simple.
the decloration or the name is our name for the variable.
Exp:
var (ourName)
the = is what links the name to the data type
EXP:
var myAge = 16;
Variables are used for storing data values,(we will learn more about data types tomorrow)now let me give some more information about variables and if you want then feel free to post your own variable.
Strings and numbers
strings aka text goes in "" (if you add numbers in "" it will be counted as text)
always ALWAYS! put the ; just please don't forget it, its very important that you always put it at the end.
numbers don't have to have quotes.
Other INFO
Here are some more examples if you aren't understanding it to the full extent
EXP:
var myName = "aaron";
var animal = "Lion";
var favoriteNumber = 8;
var number = 6;
If you still don't understand feel free to ask questions, Happy programming!