Python loop through files in directory

The files are placed in directories or subdirectories in OS and this is a very common scenario when you have to iterate files over a particular directory using python. In this tutorial, I show you how to use python to loop through files in a directory recursively or non-recursively. Python provides several built-in methods orThe files are placed in directories or subdirectories in OS and this is a very common scenario when you have to iterate files over a particular directory using python. In this tutorial, I show you how to use python to loop through files in a directory recursively or non-recursively. Python provides several built-in methods or […]

Read More…

Map function in JavaScript

In this tutorial, we learn how to use the map function in JavaScript to manipulate arrays. The map function is one of the most commonly used functions to manipulate array elements. The map() method iterates an array and modifies the array elements using the callback method and returns the new array. Learn How to useIn this tutorial, we learn how to use the map function in JavaScript to manipulate arrays. The map function is one of the most commonly used functions to manipulate array elements. The map() method iterates an array and modifies the array elements using the callback method and returns the new array. Learn How to use […]

Read More…

Check if value exists in array JavaScript ES6

While writing code it is often seen that when we have to find out whether a value array may exist or not. In Javascript, there are several ways to check whether a particular value exists in the array. In this tutorial, I show you all the possible ways to check if a value exists inWhile writing code it is often seen that when we have to find out whether a value array may exist or not. In Javascript, there are several ways to check whether a particular value exists in the array. In this tutorial, I show you all the possible ways to check if a value exists in […]

Read More…

JavaScript Array Filter

In this tutorial, we learn how to use the JavaScript array filter method to filter an array in JavaScript based on some conditions. Introduction to JavaScript Array filter This is a very common situation as a developer you have come across to manipulate array items.  Based on the condition you have to fetch and createIn this tutorial, we learn how to use the JavaScript array filter method to filter an array in JavaScript based on some conditions. Introduction to JavaScript Array filter This is a very common situation as a developer you have come across to manipulate array items.  Based on the condition you have to fetch and create […]

Read More…

What is Typescript? Compile typescript code

In this tutorial, we learn what is typescript and how to install the same. Also, understand how to run and compile the typescript program on your machine. What is Typescript? Typescript has been designed and developed by Microsoft in the year 2012. It is an open-source language that builds on top of JavaScript you canIn this tutorial, we learn what is typescript and how to install the same. Also, understand how to run and compile the typescript program on your machine. What is Typescript? Typescript has been designed and developed by Microsoft in the year 2012. It is an open-source language that builds on top of JavaScript you can […]

Read More…

How to prevent browser to cache JavaScript and CSS file

Suppose your JavaScript and CSS files refer to your master page and you modify the piece of JavaScript code or CSS Style in these files the change are not reflected after that you debug the code and found your code changes are missing. To resolve this you do a hard refresh(ctrl+f5) but this only resolvesSuppose your JavaScript and CSS files refer to your master page and you modify the piece of JavaScript code or CSS Style in these files the change are not reflected after that you debug the code and found your code changes are missing. To resolve this you do a hard refresh(ctrl+f5) but this only resolves […]

Read More…