Now that we've played with HTML and CSS, it's time to get into some JavaScript!
Before we do that, we need to pay it proper respect. JavaScript is an actual language used in computer science, and it requires a great deal of foundation. Here are some of the core concepts that we need to understand:
Data Types - Classifications for the actual type of data that we're working with. In JavaScript, we primarily use strings, numbers or boolean values.
Data Objects - Most notably, we'll be working with lists of items...we'll refer to these lists as arrays.
Variables - Variables are essentially little boxes that hold some information that we will want to use later. We may not know exactly what that information is going to be, but we know what we want to do with that information when we get it. In order to write the code ahead of time, we need a placeholder for the information that we do not yet have. That placeholder is called a "variable".
Functions - Functions are just blocks of information (or code) that you have defined ahead of time so that you can use it easily when you need it.
Once we get that information, let's write a simple page that uses all of these pieces.

No comments:
Post a Comment