Coding Basics 2
Duration: 42:35
Created with
Ben Fhala
Ben Fhala is the creative force and founder behind 02geek, a pioneering platform dedicated to making web development accessible to everyone. With over 18 years of experience in the industry, Ben has a deep passion for teaching and a knack for breaking down complex concepts into easy-to-understand lessons.
Coding Basics 2 Overview
What you'll learn
It's time to tackle, tangle, and tango with the concept of variables. You'll see how you can use variables to add numbers and strings, or perform basic mathematical operations more efficiently. We finish with an overview of primitive values - and not the kind painted on cave walls!.
Ready to Level Up Your Skills?
Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!
Enroll Now for Free!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
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.
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.
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.
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.
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.
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!
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.
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.
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
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.
Ready to Level Up Your Skills?
Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!
Enroll Now for Free!