How to get current route name in VueJs?
In this short article, we will learn how to find out the current route name in VueJS. To get the current route name and the path of a page we…
Read moreConvert array to string with brackets and quotes in JavaScript
This article is about how to convert an array to a string with brackets and quotes. Let’s say you have an array with names of fruits like this. And you…
Read moreHow to remove a property from an object in JavaScript?
In this short article, we will learn how to delete a property from a JavaScript object. JavaScript objects are collections of different properties and types, each property has a name…
Read moreConvert a Unix timestamp to time in JavaScript
This short out how to convert a Unix timestamp to a time format using JavaScript. The UNIX time (also known as Epoch time or UNIX Epoch time) is a single…
Read moreCheck if multiple values exists in an array using JavaScript
In this article, we will learn how to check if multiple values exist within a given array. Problem : Suppose we have two arrays, array1= [‘one’, ‘two’, ‘three’] and array2=…
Read moreHow to add dynamic Key to an object in JavaScript
In this article, we will learn how to add keys dynamically in objects in JavaScript. If you are working on a project and have to insert a key / property…
Read morePretty Print JSON Programmatically using JavaScript
In this tutorial, we will learn how to beautify a JSON string programmatically in JavaScript. To pretty-print a JSON, you have to convert it to an object first and then…
Read moreHow to get value from JSON object in JavaScript
In this article, we will learn how to get a value from a JSON object in JavaScript. Suppose we have to fetch some data from a server, and we get…
Read moreHide and Show element in Vue js – Toggle visibility
In this tutorial, we will see different ways how to hide/show elements in Vue. Sometimes we might want to toggle the visibility of elements on a webpage based on the…
Read more