Before we get into any major details about any of the data types, let's briefly look at a few of the different data types in Flash:
The two most commonly used data types are strings and numbers. We will go into greater detail on these two and discuss the different parts of both data types.
First, let's take a look at these data types and see how easily they can be misinterpreted:
"My name is David." // this is a string datatype 1234 // this is a number datatype "1234" // this is a string datatype 1+2+3 // this is an expression that evaluates to a number datatype "My name "+"is David" // this is an expression that evaluates to a string datatype 'Single quote marks' // this is a string datatype with single quote marks
These are the basic forms of the string and number data types. The text to the right with the double forward slashes (//) just represents comments in the code (as mentioned in the previous chapter, the interpreter skips comments completely).