Author: Saim Khalid

  • IndexedDB

    What is IndexedDB? IndexedDB, or Indexed Database, represents a low-level JavaScript API. Its function involves the storage and retrieval of voluminous structured data – this includes files and blobs. With its capabilities to work with client-side databases: it enables web applications to locally store, query, and modify data on the user’s device. This functionality proves…

  • Reference Type

    JavaScript Reference Type There are two types of data types in JavaScript: primitive and reference type. Primitive data types are immutable, which means that they cannot be changed. The primitive data types in JavaScript are: Number, String, Boolean, Undefined, Null, Symbol. Reference data types are mutable, which means that they can be changed. The reference…

  • Call Stack

    JavaScript engine uses the call stacks to manage the execution context. It is an important mechanism by which a JavaScript run engine keeps track of the function calls in a JavaScript code. However, the working of the JavaScript call stack is performed internally, but it is important to understand how JavaScript executes the functions. JavaScript…

  • Shallow Copy

    Shallow Copy In JavaScript, a shallow copy is a duplication of an array or object that replicates its top-level elements, but not its nested structures. When creating a shallow copy of an array, common methods include using the spread operator ([…]), Array.from(), or the slice() method. For objects, the spread operator ({…}) and Object.assign() are…

  • Unicode

    What is Unicode? Unicode is a universal set of characters that contains a list of characters from the majority of languages, writing systems, etc. It provides a unique number for every character without focusing on programming language, platform, operating system, etc. Furthermore, it also includes punctuation, emojis, special characters, etc. In short, the Unicode set…

  • Blob

    What is blob in JavaScript? In JavaScript, a Blob is an object that is a group of bytes representing the data stored in the file. We can easily easily read the content of the Blob object as an ArrayBuffer, so it is very useful to store the binary data. The Blob object is used to handle the…

  • BigInt

    BigInt The BigInt data type in JavaScript is a numeric primitive that can represent integers with arbitrary magnitude. This is in contrast to the Number data type, which is limited to representing integers between -(253 – 1) and 253 – 1. JavaScript which powers dynamic web applications, traditionally employs the Number type for numeric representations in accordance…

  • Dynamic Imports

    Dynamic Imports Whenever the application code grows and contains thousands of lines, it is important to split the code into modules. Modules allow developers to break down complex codes and use them in different files by importing. In JavaScript modules chapter, you learned to import and export objects from the modules, but it was a static import,…

  • Modules

    What is a Module? A module in JavaScript is a single file containing a JavaScript code or script. Rather than adding the code for the whole application in a single file, we can break down the code and create separate files for the code having the same functionalities. In short, the module contains the code to perform…

  • Set Date Methods

    Set Date Methods JavaScript Set Date Methods are functionalities linked to the Date object in JavaScript, designed to streamline the adjustment and modification of specific elements within a date and time structure. These methods empower developers to efficiently update individual components, such as year, month, day, hour, and minute, in a Date object, offering a…