Operators, arrays, and functions are the building blocks of JavaScript. In this course, you will learn about these features and get a deeper insight into how they can be used to create JavaScript apps.
Learning Objectives
Operators
- start the course
- use the assignment and arithmetic operators to manipulate numeric data
- work with comma and string operators and recall how to concatenate strings and numbers
- describe when to use comparison operators and the difference between the equality and identity operators
- work with logical operators and describe how short-circuit evaluation can affect code
- write more concise JavaScript code by using shorthand assignment operators
Arrays
- use various methods of array creation in JavaScript
- manipulate arrays by adding and removing items
- slice, splice, copy, and merge arrays
- use various methods for iterating JS arrays
- sort and reverse an array and use map to run functions against the array contents
Functions
- describe function definitions and parameters, and understand how to return values from functions
- specify the difference between function declarations and function expressions
- recall how global and function scope work within JavaScript
- define what happens in the compile phase of JavaScript programs
- create and use closures in JavaScript and understand how to use Immediately Invoked Function Expressions (IIFEs)
Practice: Development with JavaScript
- create and use a closure in JavaScript