Category: Advanced Chapters

  • Functional Programming

    There are mainly two programming paradigms: The imperative programming paradigm and the declarative programming paradigm. Functional programming is a subtype of the declarative paradigm. The paradigm word refers to the approach to solving a particular problem. Functional programming has been in use for the last decades but came in the trend after 2015 when the…

  • Form Handling

    We can handle forms in different ways like validating, submitting, altering, updating form data, etc. using JavaScript. Form Validation Form validation normally occurs at the server, after the client had entered all the necessary data and then pressed the Submit button. If the data entered by a client was incorrect or was simply missing, the server would…

  • Empty String Check

    String is a data type, which we can use to save the data present in text format. It is a sequence of characters inside the double or single quotes. Sometimes we need to check whether the string is empty or not. In JavaScript, we can check the empty string using the following methods. Using the…

  • Higher Order Function

    A higher order function accepts other functions as parameters and returns a function. To know about Higher-order functions, we should learn about call back functions. A call back function is a function that is passed to another function as an argument. With the help of call back functions, one function can call another function and…

  • Graph Algorithms

    A graph is a data structure which consist nodes and edges. The node are simply vertices and the lines which connect them are edges. Graph is non-linear data structure. A Graph algorithms in JavaScript are used to solve the graph problems. These algorithms are used to traverse the graph, find the shortest path, etc. We…

  • Get the Current URL

    In JavaScript, we can get the current URL of the page using the window.location object. The window.location object contains information about the current URL of the page. We can get URL from another method also, which is document.URL. Another method is document.documentURI which returns the location of the document as a string. Using window.location The window.location object can be used to get the current…

  • Null Checking

    In this chapter, we will learn how to check the null values in JavaScript. The null value indicates the intentional absence of any object value. It is a JavaScript primitive value that is false when used in Boolean operations. This distinguishes null from the related primitive value undefined, which is an unintended absence of any…

  • Nested Loop

    In JavaScript, a loop inside another loop is called a nested loop. We need nested loop when we iterate over multi-dimension array or matrix. When we have to perform repeated actions on each element of an array we do use nested array. Nested loops in JavaScript Let’s say we have two arrays, one is an…

  • Linked List

    Linked List is an ordered collection of data elements. In linked list the data will be represented in Nodes. Node has two parts, the first part will be holding the data of the element and second part of the node (pointer) will store the address of the very next node. In linked list elements are…

  • Lazy Loading

    In JavaScript, there is way to make website faster. Means, we can only load what we need first like images, videos,etc. The file or data which is not needed at the moment that can be loaded later when it needed this is called lazy loading. For example, When you open the Instagram app, It only…