JavaScript

JavaScript is an essential language for creating modern, interactive websites, but its complex rules challenge even the most experienced web designers. With JavaScript: The Missing Manual, you'll quickly learn how to use JavaScript in sophisticated ways -- without pain or frustration -- even if...

Descripción completa

Detalles Bibliográficos
Otros Autores: McFarland, David Sawyer, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Beijing ; Sebastopol, California : Pogue Press/O'Reilly 2008.
Edición:First edition
Colección:Missing manual
Missing manual.
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627279206719
Tabla de Contenidos:
  • Chapter 1. Writing Your First JavaScript ProgramIntroducing Programming; What's a Computer Program?; How to Add JavaScript to a Page; External JavaScript Files; Your First JavaScript Program; Writing Text on a Web Page; Attaching an External JavaScript File; Tracking Down Errors; The Firefox JavaScript Console; Displaying the Internet Explorer Error Dialog Box; Accessing the Safari Error Console; Chapter 2. The Grammar of JavaScript; Statements; Commands; Types of Data; Numbers; Strings; Booleans; Variables; Creating a Variable; Using Variables; Working with Data Types and Variables
  • Basic MathThe Order of Operations; Combining Strings; Combining Numbers and Strings; Changing the Values in Variables; Tutorial: Using Variables to Create Messages; Tutorial: Asking for Information; Arrays; Creating an Array; Accessing Items in an Array; Adding Items to an Array; Adding an item to the end of an array; Adding an item to the beginning of an array; Choosing how to add items to an array; Deleting Items from an Array; Adding and Deleting with splice(); Deleting items with splice(); Adding items with splice(); Replacing items with splice()
  • Tutorial: Writing to a Web Page Using ArraysComments; When to Use Comments; Comments in this Book; Chapter 3. Adding Logic and Control to Your Programs; Making Programs React Intelligently; Conditional Statement Basics; Adding a Backup Plan; Testing More Than One Condition; More Complex Conditions; Making sure more than one condition is true; Making sure at least one condition is true; Negating a condition; Nesting Conditional Statements; Tips for Writing Conditional Statements; Tutorial: Using Conditional Statements; Handling Repetitive Tasks with Loops; While Loops; Loops and Arrays
  • For LoopsDo/While Loops; Functions: Turn Useful Code Into Reusable Commands; Mini-Tutorial; Giving Information to Your Functions; Retrieving Information from Functions; Keeping Variables from Colliding; Tutorial: A Simple Quiz; Chapter 4. Working with Words, Numbers, and Dates; A Quick Object Lesson; Strings; Determining the Length of a String; Changing the Case of a String; Searching a String: indexOf() Technique; Extracting Part of a String with slice(); Finding Patterns in Strings; Creating and Using a Basic Regular Expression; Building a Regular Expression; Grouping Parts of a Pattern
  • Useful Regular Expressions