Learn ECMAScript - Second Edition : Discover the latest ECMAScript features in order to write cleaner code and learn the fundamentals of JavaScript, 2nd Edition.
Learn ECMAScript explores implementation of the latest ECMAScript features to add to your developer toolbox, helping you to progress to an advanced level. Learn to add 1 to a variable and safely access shared memory data within multiple threads to avoid race conditions.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
2018.
|
Edición: | 2nd ed. |
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Title Page; Copyright and Credits; PacktPub.com; Contributors; Table of Contents; Preface; Chapter 1: Getting Started with ECMAScript; The let keyword; Declaring function-scoped variables; Declaring block-scoped variables; Re-declaring variables; Closures and let keyword; The const keyword; The scope of const variables; Referencing objects using constant variables; When to use var/let/const ; Let versus var versus const performance benchmarks; Immutability in JavaScript; Object.freeze versus const; Default parameter values; The spread operator; Other uses of the spread operator.
- Making array values a part of another arrayPushing the values of an array into another array; Spreading multiple arrays; The rest parameter; Hoisting; Destructuring assignments; The array destructuring assignment; Ignoring values; Using the rest operator in an array destructuring assignment; Default values for variables; Nested array destructuring; Using a destructuring assignment as a parameter; Object destructuring assignments; Default values for variables; Destructuring nested objects; Using the object destructuring assignment as a parameter; Arrow functions.
- The value of ""this"" in an arrow functionOther differences between arrow and traditional functions; Enhanced object literals; Defining properties; Defining methods; Computed property names; Trailing commas and JavaScript; The semicolon dilemma; Automatic semicolon insertion in JavaScript; Where to insert semicolons in JavaScript?; Summary; Chapter 2: Knowing Your Library; Working with numbers; The binary notation; The octal notation; The Number.isInteger(number) method; The Number.isNaN(value) method; isNaN versus Number.isNaN; The Number.isFinite(number) method.
- The Number.isSafeInteger(number) methodThe Number. EPSILON property; Doing math; Trigonometry-related operations; Arithmetic-related operations; Exponential operator; Miscellaneous math methods; The Math.imul(number1, number2) function; The Math.clz32(number) function; The Math.sign(number) function; The Math.trunc(number) function; The Math.fround(number) function; Working with strings; The repeat(count) method; The includes(string, index) method; The startsWith(string, index) method; The endsWith(string, index) function; The indexOf(string) function; The lastIndexOf(string).
- The padStart(length [, padString])The padEnd(length [, padString]); Template strings; Expressions; Tagged template literals; Multiline strings; Raw strings; Escape sequence problem with template literals; Arrays; The Array.from(iterable, mapFunc, this) method; The Array.of(valuesâ#x80;Œ) method; The fill(value, startIndex, endIndex) method; The includes() method; The includes() versus the indexOf() method; The find(testingFunc) method; The findIndex(testingFunc) method; The copyWithin(targetIndex, startIndex, endIndex) function; The entries(), keys(), and values() methods; Array iteration.