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.

#javascript

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.

#dsa #javascript

JavaScript - Nullish Coalescing Assignment

Discover JavaScript’s Nullish Coalescing Assignment (??=) operator. Learn its use in assigning default values and ensuring non-nullish variables.

#javascript

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

JavaScript - Logical AND Assignment Operator

Logical AND assignment (&&=) in programming: Efficiently update variables based on conditions.

#javascript

JavaScript - Generator

JavaScript generators: Craft pausable sequences with yield. Perfect for async tasks & data manipulation.

#javascript

JavaScript - Closure

JavaScript closure: Inner functions retain access to variables from their parent functions, even after the parent functions have finished executing.

#javascript

JavaScript - Bind, Call, and Apply

JavaScript's bind(), call(), and apply() methods control function context, allowing explicit this binding and argument passing.

#javascript

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

JavaScript - Optional Chaining Operator

JS optional chaining operator (?.) is a safe way to access nested object properties, even if the property doesn't exist.

#javascript

Exploring JavaScript Prototype Inheritance

Object.create() creates objects inheriting through the prototype chain, while 'new' with a constructor directly inherits properties

#javascript

JavaScript - Nullish Coalescing Operator

Let's learn about what is nullish coalescing operator and how it is different from a logical OR operator!

#javascript

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.

#javascript

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.

#javascript

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.

#javascript

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

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

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

#javascript

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

JavaScript Functions

JavaScript function: reusable block of code with arguments and defaults. Declare via declaration/ expression; arrow functions are shorter.

#javascript

JavaScript - onClick vs addEventListener

JS onclick: all browsers. addEventListener: multiple events but not in older IE

#javascript