Tag: #javascript
JavaScript - Change Array by Copy Methods
Elevate your coding experience with the latest array methods in JavaScript ES2023. Explore user-friendly and non-destructive array manipulation.
Coding Challenges: What I Learned From Write Your wc Tool?
Dive into coding challenges with 'Write Your Own wc tool.' Explore TDD, classes in JavaScript, and utilities like spyOn and process.stdin.
JavaScript - Nullish Coalescing Assignment
Discover JavaScript’s Nullish Coalescing Assignment (??=) operator. Learn its use in assigning default values and ensuring non-nullish variables.
JavaScript - Logical OR Assignment Operator
Explore the use of JavaScript’s logical OR assignment operator with various data types and understand its real-world applications.
JavaScript - Logical AND Assignment Operator
Logical AND assignment (&&=) in programming: Efficiently update variables based on conditions.
JavaScript - Generator
JavaScript generators: Craft pausable sequences with yield. Perfect for async tasks & data manipulation.
JavaScript - Closure
JavaScript closure: Inner functions retain access to variables from their parent functions, even after the parent functions have finished executing.
JavaScript - Bind, Call, and Apply
JavaScript's bind(), call(), and apply() methods control function context, allowing explicit this binding and argument passing.
JavaScript - Promise, Promise All, and async/await
Discover the concepts of Promises, Promise.all(), and async/await in JS, along with example code for each. Learn to handle asynchronous operations effectively.
JavaScript - Optional Chaining Operator
JS optional chaining operator (?.) is a safe way to access nested object properties, even if the property doesn't exist.
Exploring JavaScript Prototype Inheritance
Object.create() creates objects inheriting through the prototype chain, while 'new' with a constructor directly inherits properties
JavaScript - Nullish Coalescing Operator
Let's learn about what is nullish coalescing operator and how it is different from a logical OR operator!
Exploring JavaScript Reduce Function
The reduce function is one of the built-in methods in JS that allow you to transform an array into a single value by iterating over each element in the array.
Let's Discover the JavaScript Map Keyed Collection
Learn about JavaScript Map: its keyed collection, differences from objects & how to perform CRUD operations using Map methods.
JavsScript - What is StructuredClone?
Shallow vs. deep copy in objects: shallow copies reference, deep copies the object. Use reference for shallow, recursively duplicate for deep copy.
What is Hoisting in JavaScript?
JS hoisting permits access to vars/funcs before creation, but var confuses by enabling calls before def. Prefer let/const for error prevention.
JavaScript - Mutable Array Methods
Comparing mutable and immutable array methods in JS, covering pop(), shift(), push(), unshift(). Tips for avoiding altering original arrays included.
JavaScript - Sets Data Structure
JS Set stores unique values of any type, removes array duplicates. Check isograms using Set size. Ignore case by converting to lowercase first
Regular Expression - Letter Edition
Regex matches string chars with slashes and flags like 'g' (global) and 'i' (ignore case). Blog shows finding capitals, vowels and letters.
JavaScript Functions
JavaScript function: reusable block of code with arguments and defaults. Declare via declaration/ expression; arrow functions are shorter.
JavaScript - onClick vs addEventListener
JS onclick: all browsers. addEventListener: multiple events but not in older IE