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

Intro

<p>In this chapter, our mission to learn how to become a <a href="/category/developer-basics">developer</a> is getting more complicated. We will learn about the importance of <a href="/courses/video/5/157/Using-Variables.html">variables</a>, <a href="/courses/video/8/65/Brackets.html">brackets</a>, <a href="/course/basics/operators">operators</a> and even talk more deeply about Data Types.</p> <p>We are moving right along to Coding Basics Part 2. Before starting this, I would suggest that everyone be proficient with the first part of <a href="/course/coding-basics-1">coding basics</a> (a score of 80 or above on <a href="/course/coding-basics-1">that exam</a> would do.) If there's any problem regarding the first part, contact us through the community or <a href="/course/coding-basics-1">directly</a> without hesitation. Even if you feel pretty cocky about the first part and ignored the exam, best take it to ensure that the whole concept is clear. This is important: to make the most out of this course you should at least have some basic knowledge of creating variables and solving simple <a href="/courses/video/5/160/Deeper-Look-Math-Operators.html">mathematical</a> equations. So, let's move on to the current topic.</p> <h2>Brackets</h2> <p>In this course, we will learn some important aspects of coding which are really key for any programming language. To start with, we'll discuss brackets. Brackets are used often in code and you can't move further without having basic knowledge of how and when to <a href="/courses/video/5/35/What-Opens-Must-Close.html">open and close brackets</a>.</p> <h2>Operators</h2> <p>We will discuss more about brackets in the <a href="/courses/video/5/35/What-Opens-Must-Close.html">next video</a>, but here I'd like to introduce you to a new word: operator. Operators are basic symbols in <a href="/courses/video/5/160/Deeper-Look-Math-Operators.html">math</a> for addition, subtraction, multiplication etc. These are classified into many types such as <a href="/courses/video/7/59/Logical-Operator.html">logical operators</a>, arithmetic operators etc, and are referred as <a href="/courses/video/5/160/Deeper-Look-Math-Operators.html">math operators</a> altogether. We will have a quick view of operators and their use later in this course.</p> <h2>Primitive Variables</h2> <p>The next part is dedicated to dealing with <a href="/courses/video/5/158/What-are-Primitives.html">primitive</a> variables. We will define these types of variables as variables which can store only one value (<a href="/courses/video/5/158/What-are-Primitives.html">Boolean</a>, <a href="/courses/video/5/161/Numbers-int-And-unit.html">integer</a> etc) at a time, unlike <a href="/course/basics/objects">objects</a> which store buckets of information. We're not getting deeply into primitives right now because we haven't dug into the other more advanced types of variables yet. We will compare and contrast between the Primitive and Object variables, and by differentiating between these two types, we can easily understand the exact nature of a primitive variable.</p> <p>You're familiar with both <a href="/courses/video/4/154/Strings-As-Our-First-Variable.html">strings</a> and <a href="/courses/video/4/156/Numbers-As-Our-Second-Variable.html">numbers</a> by now. Just for grins, imagine a very weird bucket full of different numbers, a bunch of strings, and several Booleans mixed in just for spice. That bucket is a an object. Reach in and pull out a single number: you're holding a primitive. Now grab a spicy <a href="/courses/video/5/158/What-are-Primitives.html">Boolean</a>: you're holding another primitive.</p> <h2>Mixing Strings and Numbers</h2> <p>Finally, we will learn how to <a href="/courses/video/5/37/Mixing-Strings-and-Numbers.html">mix up</a> everything and create a unified code out of it. it's important to know how to add strings as well. We can add two strings together (concatenate them) to form a single word or sentence as output. It's not just enough to understand the basics of variables and operators: you should also be capable of using them in your program. Therefore, be ready to master your coding basics by completing this course. At the end, as always be ready for the exam and extract the most out of our community support!</p>

Intro

In our mission to learn how to become a developer, things are getting more complicated. We will learn about the importance of variables, brackets, operators and even talk more deeply about data types

01:52

What Opens Must Close

Quick detour - I want to let you in on a little secret. It's my favorite shortcut in the book and will help you manage the many brackets with which you work.

06:33

Addition

Let's study string addition! We will see how we add strings together and how we add numbers together. And if you think that isn't enough, we'll even look at error 1084 and figure out how to avoid it.

03:33

Mixing Strings and Numbers

When working with numbers and strings it's important to prevent Compiler (Flash) from automatically converting data so you'll not be automatically confused.

02:04

Converting Strings to Numbers

How do we take that string and let Flash know we actually want it to be a number? The answer is simple: learn a new function. This function type is called Casting.

01:16

Using Variables

So, we have variables and we know how to create them but how can we actually use them and for what? We agree, it's time to see them in action through this video.

06:15

What are Primitives?

It’s important to differentiate between primitive and complex data types in Flash. Have no clue what primitive values are, well jump in and let's figure it out!

02:09

Deeper Look: Defining Variables

Now that we know what variables are it's time to look deeper into their structure and how to play with them. Also, we'll learn about a new error type we can now check to avoid - Error 1120.

04:10

Deeper Look: Math Operators

Things are starting to fall into the right place! Lets revisit the math operators and add a few new tricks and shortcuts. Also learn about a new operator (%) used to find the modulus of two numbers.

05:36

Numbers, int And unit

Though all three types Number, int and uint are used to represent numbers, there are few minor differences between them which help us save time. Lets learn what are they and when should we use them

07:19

Boolean

Boolean are simple. They are really only place holders that can hold only two possible values: true or false (0 or 1, yes or no...) Lets learn how Boolean variables are used in programming.

01:48