HOUR 5:Using Variables, Strings, and Arrays
What You’ll Learn in This Hour:
• Naming and declaring variables
• Choosing whether to use local or global variables
• Assigning values to variables
• How to convert between different data types
• Using variables and literals in expressions
• How strings are stored in String
objects
• Creating and using String
objects
• Creating and using arrays of numbers and strings
Welcome to the beginning of Part II of this book. Now that you have learned some of the fundamentals of JavaScript and the DOM, it’s time to dig into more details of the JavaScript language.
In this hour, you’ll learn three tools for storing data in JavaScript: variables, which store numbers or text; strings, which are ...
Get Sams Teach Yourself JavaScript in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.