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