| |
| | Week 13 Notes: JavaScript |
 | | In an untyped language, a variable may be of any data type, and an individual variable's data type may be changed at any time. |
 | | As I mentioned earlier, even though JavaScript is an untyped language, and even though you can change a variable's data type on-the-fly in JavaScript, variables can only be a SINGLE data type at any given time, whether that type be a number, a string, a boolean, an object, or null/undefined. |
 | | Data may be passed as an argument to a method/function either directly (by stating the actual number, string, or boolean value), or by passing a variable containing the data (by stating the variable name). |
| fog.ccsf.cc.ca.us /~pthiry/132/week13notes.htm (18351 words) |
|