including primitive and reference values, and division (/). show you how to use the remainder operator (%) to get the remainder left over when one value is divided by another value. guide you on how to use assignment operators (=) to assign a value or an expression to a variable. learn how to use unary operators. show you how to use comparison operators to compare two values. learn how to use the logical operators: NOT (!)。
properties, World!" message. Section 2. Fundamentals explain the JavaScript syntax。
regardless of its outcome. guide you on how to handle errors in promises. – write asynchronous code in a clearer syntax. return a new Promise with resolve and reject functions. Section 10. Iterators Generators introduce you to the iteration and iterator protocols. develop functions that can pause midway and then continue from where they paused. dive into how to use the yield keyword in generators. learn how to use the for...of loop to iterate over elements of an iterable object. – learn how to use asynchronous iterators to access asynchronous data sources sequentially. – show you how to create an async generator. Section 11. Modules learn how to write modular JavaScript code. explain in detail how to export variables, AND (), Welcome to the JavaScriptTutorial.net website! This JavaScript Tutorial helps you learn the JavaScript programming language from scratch quickly and effectively. If you find yourself in any of the following situations: Unsure about where to start learning JavaScript. Tired of simply copying and pasting JavaScript code without really understanding how it works. Feel stuck to add richer and more compelling features to your websites and web applications because you dont know how to get much out of JavaScript. JavaScriptTutorial.net is a good place to start. Section 1. Getting started introduce you to JavaScript and its history. learn how to install the Visual Studio Code for editing JavaScript code. provide you with a basic introduction to the Console window on the web browsers. learn how to execute the first JavaScript code that displays the famous "Hello, =, keywords, including ||=,。
and how to use them effectively. show you how to execute multiple asynchronous operations in sequence. Promise composition: learn how to compose a new promise out of several promises. – learn how to use the JavaScript Promise.any() method to return the first Promise that fulfills. – accept a list of promises and returns a new promise that resolves to an array of values。
and OR (||). Section 4. Control flow Statements show you how to use the if statement to execute a block if a condition is true. learn how to execute a block of code based on a specified condition. check multiple conditions and execute a block. show you how to make a shortcut for the if statement ( ?:). show you how to replace multiple if statements when comparing a value with multiple variants by using the switch statement. learn how to perform a pre-test loop that repeatedly executes a block of code as long as a specified condition is true. show you how to carry a post-test loop that executes a block of code repeatedly until a specified condition is false. learn how to repeatedly execute a block of code based on various options. learn how to prematurely terminate a loop. show you how to skip the current iteration of a loop and jump to the next one. guide you on how to use the comma operator in a for loop to update multiple variables at once. Section 5. Functions introduce you to functions in JavaScript. learn how to store functions in the variables, let。
not instances of that class. show you how to define static properties shared by all instances of a class. – learn how to define private fields in a class. – show you how to define private methods in a class. Section 8. Advanced Functions introduce you to the Function type and its properties and methods. understand the call() method and learn how to use it effectively. learn how to use the apply() method effectively. understand the bind() method and how to apply it effectively. understand the closures in JavaScript. learn about immediately invoked function expressions (IIFE). guide you on how to return multiple values from a function. introduce you to the arrow functions ( =) learn when not to use arrow functions. introduce you to the rest parameters and how to use them effectively. introduce you to the callback functions and learn how to use the callbacks to handle asynchronous operations. Section 9. Promises Async/Await learn about Javascript Promises。
and the differences between them. introduce you to the Array type and how to manipulate array elements. Section 3. Operators introduce to you the arithmetic operators including addition (+), expressions, and classes from a module. guide you on how to import default exports and named exports from another module. – show you how to import a module dynamically via the function-like object import(). – explain the top-level await module and its use cases. Section 12. Symbol introduce you to a new primitive type called symbol in ES6 Section 13. Collections introduce you to the Map type that holds a collection of key-value pairs. learn how to use the Set type that holds a collection of unique values. Section 14. Error handling show you how to handle exceptions gracefully. learn how to catch exceptions and execute a block whether the exceptions occur or not. show you how to throw an exception. – omit the exception variable in the catch block. Section 15. JavaScript var, what they are, which were settled (either resolved or rejected) by the input promises. – execute a piece of code when the promise is settled, and return functions as values. learn about anonymous functions which are the functions without names. understand how pass-by-value works in JavaScript. learn how to define recursive functions. show you how to define default parameters for functions. Section 6. Objects Prototypes introduce you to the methods of an object. show you how to use constructor functions to define custom types in JavaScript. learn how the prototype works in JavaScript. show you how to combine the constructor function and prototype pattern to define custom types. understand prototypal inheritance in JavaScript. understand the this value and how it works in JavaScript. – provide a standard way to access the global object across environments. dive into the objects properties and their attributes. learn how to iterate over properties of an object using the for...in loop. learn more about the enumerable properties. understand the own and inherited properties. learn about the factory functions which are functions that return objects. learn how to assign properties of an object to variables. (?.) – simplify the way to access a property located deep within a chain of connected objects without having to check if each reference in the chain is null or undefined. provide a new way to define object literal. Section 7. Classes introduce you to the ES6 class syntax and how to declare a class. define the getters and setters for a class using the get and set keywords. learn an alternative way to define a new class using a class expression. explain the computed property and its practical application. show you how to extend a class using the extends and super keywords. introduce you to the new.target metaproperty. guide you on how to define methods associated with a class, functions, multiplication (*), subtraction (-)。
and methods of objects at runtime. Section 17. JavaScript Runtime understand execution contexts including global and function execution contexts. understand the call stack. show you how JavaScript handles asynchronous operations using the event loop. learn how hoisting works in JavaScript. introduce you to the variable scopes. Section 18. Primitive Wrapper Types learn how primitive wrapper types work in JavaScript. introduce you to the Boolean primitive wrapper type. learn about the Number primitive wrapper type. – introduce the BigInt type that represents the big integers. introduce you to the String type. Section 19. Advanced Operators – introduce to you the logical assignment operators, including whitespace。
which is similar to Math.pow() method. 。
and const declare block-scoped variables using the let keyword. understand the differences between let and var. define constants using the const keyword. Section 16. Proxy Reflection learn how to use the proxy object that wraps another object (target) and intercepts the fundamental operations of the target object. show you how to use ES6 Reflection API to manipulate variables, identifiers, and ??= (??) – accept two values and return the second value if the first one is null or undefined. introduce you to the exponentiation operator (**) that calculates a base to the exponent power, statements。
including primitive and reference types. learn how JavaScript uses the Number type to represent the integer and floating-point numbers. – show you how to make the numbers more readable by using underscores as numeric separators. provide support for binary literals and change the way to represent octal literals. introduce you to the Boolean type. learn about string primitive type and some basic string operations. introduce you to the object type. understand two value types in JavaScript, and comments. show you how to declare variables. introduce to you the JavaScript data types。
pass functions into other functions as arguments。
