Skip to content
  • Home
  • ES6
  • Advanced
    • JavaScript Array Methods
    • JavaScript String Methods
    • Regular Expressions
    • ES Next
  • JS BOM
  • JS DOM
  • Web API
  • Node.js
  • React
  • Snippets
  • TypeScript

Home » DOM » Traversing

Traversing

Get the Closest Element by Selector

Get the closest element tht match a selector.

Get Siblings of an Element

Provide a helper function that returns all siblings of an element.

Get the Children of an Element

Get all the child elements of an element

Get the Parent of an Element

Get the parent node of an element by using the parentNode property of the element.

Getting Started

  • What is JavaScript
  • Install a JavaScript Code Editor
  • Meet the Console Tab of Devtools
  • JavaScript Hello World

JavaScript Fundamentals

  • Syntax
  • Variables
  • Data Types
  • Number
  • Numeric Separator
  • Octal and Binary Literals
  • Boolean
  • String
  • Object
  • Primitive vs. Reference Values
  • Array

JavaScript Operators

  • Arithmetic Operators
  • Remainder Operator
  • Assignment Operators
  • Unary Operators
  • Comparison Operators
  • Logical Operators
  • Logical Assignment Operators
  • Nullish Coalescing Operator
  • Exponentiation Operator

Control Flow

  • if
  • if else
  • if else if
  • Ternary Operator (:?)
  • switch case
  • while
  • do while
  • for
  • break
  • continue
  • Comma Operator

JavaScript Functions

  • Functions
  • Functions are First-Class Citizens
  • Anonymous Functions
  • Understanding Pass-By-Value in JavaScript
  • Recursive Functions
  • Default Parameters

JavaScript Objects

  • Object Methods
  • Constructor Functions
  • Prototype
  • Constructor/Prototype Pattern
  • Prototypal Inheritance
  • this
  • globalThis
  • Object Properties
  • for…in Loop
  • Enumerable Properties
  • Own Properties
  • Factory Functions
  • Object Destructuring
  • Optional Chaining Operator
  • Object Literal Syntax Extensions

Classes

  • Class
  • Getters & Setters
  • Class Expressions
  • Computed Properties
  • Inheritance
  • new.target
  • Static Methods
  • Static Properties
  • Private Fields
  • Private Methods
  • instanceof Operator

Advanced Functions

  • Function Type
  • The call() Method
  • The apply() method
  • The bind() Method
  • Closures
  • Immediately Invoked Function Expression (IIFE)
  • Returning Multiple Values
  • Arrow Functions
  • Arrow Functions: Do & Don’t
  • Rest Parameters
  • Callback

Promises & Async/Await

  • Promises
  • Promise Chaining
  • Promise.all()
  • Promise.race()
  • Promise.any()
  • Promise.allSettled()
  • Promise.prototype.finally()
  • Promise Error Handling
  • async/await
  • Promise.withResolvers()

JavaScript Modules

  • Modules
  • Dynamic Import
  • Top-level Await Modules

Javascript Error Handling

  • try…catch
  • try…catch…finally
  • Throw an Exception
  • Optional catch Binding

JavaScript Runtime

  • Execution Context
  • Call Stack
  • Event Loop
  • Hoisting
  • Variable Scopes

About JavaScript Tutorial

The JavaScript Tutorial website helps you learn JavaScript programming from scratch quickly and effectively.

Latest Tutorials

  • React useRef Hook
  • React useReducer
  • React Portals
  • React Context
  • Express Validation

References

  • Array Methods
  • String Methods
  • Regular Expressions

Site Links

  • Donation ❤️
  • About
  • Contact
  • Privacy Policy

Copyright © 2024 by JavaScript Tutorial Website. All Right Reserved.