featured Image

How to read text file in JavaScript (line by line)

In this article, we will learn how to read text files line-by-line using JavaScript. We can read and view the content of the text file using FileReader() object in our…

Read more
featured Image

JavaScript – Show and hide div on button click using JavaScript

In this post, we will learn how to show or hide a div with a click of a button using JavaScript. To show or hide a div in HTML we…

Read more
featured Image

How to pass data from child to parent component in Vue JS

In this post, we will learn how to pass data from child to parent component in Vue JS. In Vue we can pass data between two components in two ways:…

Read more
featured Image

How to find the median value of an array using JavaScript

In this post, we will learn about the median value and how to find the median of an array of numbers using JavaScript. So what is a median value? In…

Read more
featured Image

Find the average of n numbers using JavaScript

In this tutorial, we will learn how to find the average of the nth number of items in an array using JavaScript. There is no built-in JavaScript function to find…

Read more
featured Image

Execute a function from child component in Vue

In this article, we will learn how to execute a function from a child component in Vue Js. In Vue, we want to execute a parent component function from a…

Read more
featured Image

How to pass data from parent component to child using props in Vue

In this post, we will learn how to send data from the parent to the child component using props in Vue. In Vue, sharing data between components is one of…

Read more
featured Image

Add CSS style to input type=file | Custom file input

In this article, we will see how we can create a custom file input by styling the input field of type=’file’ using CSS. To build a button/field to upload files…

Read more
featured Image

How to allow input type=file accept only images

In this short post, we will see how to allow the input field with type=file to accept only images from users. Let’s say we have an input field as type=file….

Read more