
- #Java script how to#
- #Java script code#
#Java script how to#
break – learn how to prematurely terminate a loop.
#Java script code#
for loop – learn how to repeatedly execute a block of code based on various options. do…while – show you how to carry a post-test loop that executes a block of code repeatedly until a specified condition is false. while – learn how to perform a pre-test loop that repeatedly executes a block of code as long as a specified condition is true. switch – show you how to replace multiple if statements when comparing a value with multiple variants by using the switch statement. Ternary operators – show you how to make a shortcut for the if statement ( ?:). if…else…if – check multiple conditions and execute a block. if…else – learn how to execute a block of code based on a specified condition. if – show you how use the if statement to execute a block if a condition is true. Exponentiation operator – introduce you to the exponentiation operator ( **) that calculates a base to the exponent power, which is similar to Math.pow() method. Nullish coalescing operator ( ?) – accept two values and return the second value if the first one is null or undefined. Logical assignment operators – introduce to you the logical assignment operators, including ||=, &=, and ?=. Logical operators – learn how to use the logical operators: NOT ( !), AND ( &), and OR ( ||). Comparison operators – show you how to use comparison operators to compare two values. Unary operators – learn how to use unary operators. Assignment operators – guide you on how to use assignment operators ( =) to assign a value or an expression to a variable. Remainder operator – show you how to use the remainder operator ( %) to get the remainder left over when one value is divided by another value. Arithmetic operators – introduce to you the arithmetic operators including addition ( +), subtraction ( -), multiplication ( *), and division ( /). Array – introduce you to the Array type and how to manipulate array elements. reference values – understand two value types in JavaScript, including primitive and reference values, and the differences between them. Object – introduce you to the object type. String – learn about string primitive type and some basic string operations. Boolean – introduce you to the Boolean type. Octal & binary literals – provide support for binary literals and change the way to represent octal literals. Numeric Separator– show you how to make the numbers more readable by using underscores as numeric separators. Number – learn how JavaScript use the Number type to represent the integer and floating-point numbers.
Data types – introduce to you the JavaScript data types, including primitive and reference types.Variables – show you how to declare variables.Syntax – explain the JavaScript syntax, including whitespace, statements, identifiers, keywords, expressions, and comments.