JavaScript

JavaScript

I will be posting my JavaScript notes and projects here. Feel free to use my JS code if it helps. I’m learning JS to know more about interacting with the DOM(Document Object Model) and because it will help with using NodeJS, Angular, and React.

Resources and References

Shortcuts

  • ctrl-alt-j to open console in browser

Data Structures, Modern Operators & Strings

JS-DataStructures-ModernOperators-Strings [GitHub]

  • Destructuring Arrays [GitHub]
  • Destructuring Objects [GitHub]
  • The Spread Operator (…) [GitHub]
  • Rest Pattern and Parameters [GitHub]
  • Short Circuiting (&& and ||) [GitHub]
  • The Nullish Coalescing Operator (??) [GitHub]
  • Logical Assignment Operators [GitHub]
  • Coding Challenge #1 [GitHub]
  • Looping Arrays: The for-of-Loop [GitHub]
  • Enhanced Object Literals [GitHub]
  • Optional Chaining (?.) [GitHub]
  • Looping Objects: Objects Keys, Values, and Entries [GitHub]
  • Coding Challenge #2 [GitHub]
  • Sets [GitHub]
  • Maps: Fundamentals [GitHub]
  • Maps Iteration [GitHub]
  • Summary Which Data Structure to Use? [GitHub]
  • Coding Challenge #3 [GitHub]
  • Working With Strings – Part 1 [GitHub]
  • Working With Strings – Part 2 [GitHub]
  • Working With Strings – Part 3 [GitHub]
  • Coding Challenge #4 [GitHub]
  • String Methods Practice [GitHub]

A Closer Look at Functions

  • Default Parameters
  • How Passing Arguments Works: Value vs Reference
  • First-Class and Higher-Order Functions
  • Functions Accepting Callback Functions
  • Functions Returning Functions
  • The Call and Apply Methods
  • The bind Method
  • Coding Challenge #1
  • Immediately Invoked Function Expressions (IIFE)
  • Closures
  • More Closure Examples
  • Coding Challenge #2