Ім'я файлу: DONE TOPICS.docx Розширення: docx Розмір: 17кб. Дата: 20.02.2023 скачати Пов'язані файли: 1.docx Statements JS programs Statements consist of Semicolons White Spaces JS line length and breaks JS code blocks JS Keywords Syntax What is syntax JS values types Literals Variables, how create, purpose Operators Expressions Keywords Comments Identifiers/names Case Sensitive Camel Case Character Set JS comments Purpose Single Line Comments Multi-line comments Comments to prevent execution Variables Ways to declare variable What is variables When used var, when let const When to use const Js identifiers Assignment Operator Data types Declaring Js variable One statement, many vars Value = undefined Redeclaring Arithmetic Dollar Sign Underscore LET Cannot be redeclared Block scope Redeclaring variables Browser support Redeclaring Let hoisting CONST Cannot be reassigned Must be assigned When to use Constant object and arrays Change elements of constant array Constant objects Browser support Block Scope Redeclaring Hoisting Arithmetic Ar. Operators Ar. Operations Operators and operands + - / * % Exponentiation Precedence Assignment Assignment operators Logical assignment Data Types 8 data types 3 type of object data Types goal Dynamic types Strings Number Exponential notation bigInt Booleans Arrays Object Typeof Undefined Empty value Functions Function is Function syntax Function invocation Return Why functions () operator Function as variable value Local variables Objects Object is Object definition Obj props Obj props access Obj methods This This keyword Obj methods access Not use string, number, Boolean objects Events Events are Common html events Event handlers Strings Strings length Escape character Breaking long code lines Strings as objects Objects never compares String Search Methods IndexOf lastIndexOf Search Includes Match MatchAll startsWith endsWith Template Literals Backtics syntax Quotes inside template Mulitlines Interpolation Variable substitution Expression substitution HTML templates Browser support Numbers Number Types Integer Precision Floating Precision Adding numbers and strings Numeric Strings NaN Infinity Numbers as Objects BigInt For what Js Integer Accuracy How to create bigint Bigint new type Bigint operators Bigint decimals Precision curiosity Browser support Min max safe integers New num methods Number Number methods Converting vars to numbers Number method Number method with dates Number object methods Global vs numbers methods for converting to string Arrays Why use arrays Creating array Using new keyword Accessing array elements Changing array elements Access the full array Arrays are objects Array elements can be objects Array props and methods Length prop Accessing the first element Accessing last Looping array Adding Associative Array Difference between arrays and objects When arrays when objects Common error with new Array() How to recognize Array JS DATA Object Js date output Creating data obj New Date(date string) |