02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoPrevious Video

What are Variables?

<p> Variables are the building blocks of the programming world. Take any programming language and the basic elements, the building blocks, will be variables. You can also think of variables as buckets which can store data. When we move further along in this course you will get to know variables a lot better as our usage of them increases. .</p> <p> Data type&rdquo; mean the type of data (such as numbers or text) which we can use while programming. There are 3 primitive data types (we don&#39;t mean data painted on a cave wall by a Neanderthal!) Primitive means the most basic types which JavaScript stores in a special way to make retrieval as fast as possible. Complex data types, such as arrays or objects, take longer to store and retrieve &ndash; but they also contain more data. Primitives exist in almost every language. Here are the three JavaScript uses:</p> <ol> <li> <p> <b>STRING</b>: Strings are where we can store any copy -- it can be a name, an address etc, any text. We will explore and learn more about strings in a later video. Here is an example:<br /> <i>var strAddress = &ldquo;2929 White House Way&rdquo;;</i></p> </li> <li> <p> <b>NUMBER</b>: if the name doesn&#39;t give it away, here is a hint: it has something to do with numbers! This data type stores numeric digits of any kind (real, integers, negatives and positives.) Throughout the next few videos we will apply various Math operations on numbers. Here&#39;s a fast example:<br /> <i>var nMonth = 12;</i></p> </li> <li> <p> <b>BOOLEAN</b> variables which can either be &quot;true&quot; or &quot;false.&quot; No other value can be contained in one. Look at this statement, &quot;you broke this window.&quot; This can either be true or false: that&rsquo;s what the Boolean data type is used for. We store true or false information in it and it&#39;s usually used for flags to check whether we should take a decision or not. Booleans will prove to be a great asset in your tool belt, about which we will learn as we progress in this course. Here&#39;s a fast example:<br /> <i>var isBroken = false; </i></p> </li> </ol> <h3>Coming up next..</h3> <p> In the next video we will begin playing with these data types while coding in JavaScript.</p>

Intro

It's never been easier to start learning programming in JavaScript. We live in an HTML5 world: what would be better than learning how to code with JavaScript and HTML5?

03:59

The Script Tag

You must know about script tags in order to code in JavaScript, so let’s jump into it and learn with style!

04:26

OOP and DOM

Two basics which are very important in programming and provide discipline which helps you learn and stay organized

02:45

What are Variables?

Variables are the building blocks of any language, so it's best to be very familiar with them and their usage.

01:37

Strings

Strings are an important part of programming; they can be manipulated, passed as parameters and a lot more.

10:39

Creating Javascript Comments

Comments are a great asset of programming. They will help make the code more understandable and manageable

00:52

Numbers

Math is everywhere; numbers are everywhere. JavaScript lets us use them and apply math on them, so let’s have fun and learn about Numbers in JavaScript.

09:29

Boolean

Booleans help us make important decisions in programming by proving yes or no information.

09:10