Author: Saim Khalid

  • Current Date/Time

    Date and time are the most common things we often need to use in applications. In javascript, we can use Date object to get the current date and time. To solve all the problems, we will just create an object of date class and will use its various methods to get the current date and…

  • Callback Function

    In JavaScript, functions are considered as objects, which means they can be used just like any other value we pass to the function. So, we can pass them as parameters to other functions just like we do with variables or objects. When you pass a function as a parameter, it will be called or even…

  • Base64 Encoding

    Encoding is the process of converting text from one data format to another. In computer science terms,encoding is the process of converting a text into a cipher text. Encoding is different from the Encryption process. Base64 encoding is generally used for encoding binary data, such as images, audio, video, etc. It is a group for…

  • Data Structures

    Data Structures are the programming constructs which are used to store and organize data. We can write effective efficient programs using these, while performing data operations. JavaScript provides various data structures for different operations. In this tutorial, we will learn about the different data structures in JavaScript. Data Structures in JavaScript We have the following…

  • Recursion

    Recursion is a process in which a function calls itself. It helps when we need to solve a problem that can be break down into smaller problem of the same type. What is Recursion? The word recursion came from the recurring, meaning comes back to again and again. The recursion function is the function calling…

  • Date Comparison

    We often need to compare dates in any programming language. In JavaScript the date is one of the data types, and it is common for developers to work with dates while building applications or, writing certain date based programs. Let’s understand the need to compare the date with a real-life example. Most of you are…

  • Upload Files

    We all know that there is a common task in web development which is uploading files to a server. Even though the most common way to submit files is using forms, there are various methods as well. In this chapter we will cover three main approaches given below − Let us discuss above approaches in…

  • Truthy/Falsy Values

    Truthy & Falsy Values In JavaScript, true and false values are related to boolean evaluation. Every value in JavaScript has an inherent boolean “truthiness” or “falsiness,” which means it can be determined as true or false in boolean contexts like conditional expressions and logical operators. Example Let us use a scenario and a simple JavaScript…

  • tRPC Library

    tRPC is a type-safe TypeScript module that uses the RPC API design to process API requests and return results. RPC refers to Remote Procedure Call. The tRPC builds on RPC. RPC is an architectural method for creating REST-like APIs. RPC replaces the Fetch and REST APIs. What is tRPC? As the name suggests, tRPC adds…

  • Throttling

    What is Throttling? Throttling is a technique that limits how many times a function can be called in a specific period of time. It improves the speed and responsiveness of web sites by implementing event listeners that do heavy or expensive tasks such as animations, scrolling, resizing, getting data, etc. For example, if you have…