Coding with JavaScript for dummies
Go from beginner to builder quickly with this hands-on JavaScript guide Coding with JavaScript For Dummies provides easy, hands-on instruction for anyone looking to learn this popular client-side language. No experience? No problem! This friendly guide starts from the very beginning and walks you t...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Hoboken, NJ:
Wiley
c2015.
Hoboken, NJ : [2015] |
Edición: | 1st edition |
Colección: | --For dummies.
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628671006719 |
Tabla de Contenidos:
- Chapter 2 Writing Your First JavaScript ProgramSetting Up Your Development Environment; Downloading and installing Chrome; Downloading and installing a code editor; Reading JavaScript Code; Running JavaScript in the Browser Window; Using JavaScript in an HTML event attribute; Using JavaScript in a script element; Including external JavaScript files; Using the JavaScript Developer Console; Commenting your code; Chapter 3 Working with Variables; Understanding Variables; Declaring Variables; Understanding Global and Local Scope; Naming Variables; Creating Constants Using the const Keyword
- Working with Data TypesNumber data type; String data type; Boolean data type; NaN data type; undefined data type; Chapter 4 Understanding Arrays; Making a List; Array Fundamentals; Arrays are zero indexed; Arrays can store any type of data; Creating Arrays; Using the new keyword method; Array literal; Populating Arrays; Understanding Multidimensional Arrays; Accessing Array Elements; Looping through arrays; Array properties; Array methods; Using array methods; Chapter 5 Working with Operators, Expressions, and Statements; Express Yourself; Hello, Operator; Operator precedence
- Types of OperatorsAssignment operators; Comparison operators; Arithmetic operators; String operator; Bitwise operators; Logical operators; Special operators; Combining operators; Chapter 6 Getting into the Flow with Loops and Branches; Branching Out; if . . . else; Switch; Here We Go: Loop De Loop; for; for . . . in; while loops; do. . . while; break and continue; Part II Organizing Your JavaScript; Chapter 7 Getting Functional; Understanding the Function of Functions; Using Function Terminology; Define a function; Function head; Function body; Call a function
- Defining parameters and passing argumentsReturn a value; The Benefits of Using Functions; Writing Functions; Returning Values; Passing and Using Arguments; Passing arguments by value; Passing arguments by reference; Calling a function without all the arguments; Setting default parameter values; Calling a function with more argument than parameters; Getting into arguments with the arguments object; Function Scope; Anonymous Function; Knowing the differences between anonymous and named functions; Self-executing anonymous functions; Do it Again with Recursion; Functions within Functions
- Chapter 8 Making and Using Objects