Prime JavaScript tutorial

Destructuring

Array destructuring Array from a function Skipping array elements Extra array values Rest of an array Default values for arrays Default functions for arrays Variable declaration for arrays Object destructuring Variable names for objects Default values for objects Default variables and values for objects Declaring variables for objects Function parameters Objects in function parameters destructuring

Time

Working with the Date object Date formats Changing a date format ru ссылка Getting the day of the week Outputting a date with words Time setting Timestamp format Timestamp difference Difference of objects with date Automatic date adjustment Finding the last day of the month Leap year determination Date validation Getting day of the current year Day of the current month Day of next or previous year Day of next or previous month Difference of points in time Point in time of day Beginning of the day End of the day Loop check of time Practice in getting points in time String comparison of dates Comparison of date without year Date falling into the interval Comparing objects with dates

Introduction to the DOM

Introduction DOM elements Getting a DOM element Advanced selectors of the DOM element Attaching handlers Named event handlers Single handler for elements Handlers for one event Handlers for different events Element text HTML code of element Tag attributes as properties Working with text fields Text fields focus Attribute-exceptions Methods and properties chains Advantages and disadvantages of chains This object This advantage Getting a group of elements Named handlers in a loop Anonymous handlers in a loop Unbinding event handlers Unbinding handlers in a loop Unbinding anonymous handlers Coding tips Finding mistakes practice Practicum

Attributes

Attributes getting method Attributes setting method Attributes removing method Attributes checking method Custom attributes Custom hyphenated names Data methods CSS classes array CSS classes adding CSS classes removing CSS classes checking CSS classes toggling

Stylization

Style attribute Hyphenated properties Exception CSS classes CSS classes advantages Applying

Searching

Elements descendants Elements parents All parents Siblings Searching by id Searching by tag Searching by class Searching insideelement

Nodes

Intro Loop iteration of nodes Node name Node type Node text

Forms

Working with textarea Element disabling Working with checkboxes Alternating attributes without values Working with radio buttons Change event Input event Focus and blur methods

Dropdown lists

Working with dropdown lists Value attribute of dropdown lists Changing the selected list item Number of the selected list item Getting dropdown list items Items as array Options Selecting a list item Getting the selected option Finding mistakes practice

Event object

Event object basics Event coordinates Event type Event element Getting pressed keys Modifier key tracking Canceling default action Event bubbling Target element when bubbling Stopping event bubbling Multiple handlers on an element Immediate termination of bubbling Usage of stopping event bubbling Events capturing Handlers for new elements Event delegation Universal event delegation

Context

Context basics Unbound function context Context losing Solving the context problem Variable solution Passing parameter-solution Arrow function solution Call method Call method with parameters Apply method Bind method

Timers

Timer start Сounter using a timer Stopping a timer Buttons to start Multiple launch Buttons to stop Working with the DOM Timers and context loss Timers and the DOM practicum Delay before execution Timer with Delay

Element manipulation

Creating and inserting elements Binding events on insertion Creating elements in a loop Attaching handlers in a loop Removing elements Insertion on edges Insertion before Adjacent insertion Adjacent tag insertion Cloning elements еще задач Checking elements

Practicum

Creating elements from an array Creating ul lists in practice Creating HTML tables Sequential populating an HTML table Creating a table from an array Creating a table from an array of objects Adding rows and columns to a table Modifying table cells Removing new items Link to remove an element Creating links to remove Editing a single element Hiding text while editing Editing in a group of elements Simultaneous editing and removal Element styling Buttons to hide and show an element Many elements with show buttons Element activation Alternation of activation styles Changing elements in practice

Functions an the DOM

Functions for working with a DOM element Functions for working with a group of elements Passing a callback to work with the DOM Passing an index number to a callback Passing an element as a function parameter Passing a group of elements as parameters Function for creating HTML tables Returning a table from a function Function to create a table from an array

Modules via closures

Variables conflicts Modules via closures Practical usage Passing parameters Passing a parent element Passing module settings Default parameters Exporting variables and functions Object export in modules via closures Libraries via closures
enru