Posts for Code examples

This section provides you small and well-documented Code examples for Beginners, Clear Your basic Concepts using this section
Deven
Deven wrote

How to query in Mongoose

In this article, you are going to learn about how to query in Mongoose. Mongoose is an ODM(Object Data Modeling) library for MongoDB that is based on NodeJS. You can create Schema, manage documents, and many more by using Mongoose. Moreover, you can query specific data. Here, query refers to the term as finding data […]

January 11, 2022 in Code examples
Deven
Deven wrote

How to configure .eslintrc config file with example in NodeJS

In this article, you are going to learn about how to configure the .eslintrc config file with an example in NodeJS. Eslint is basically a program that constantly scans code and finds out potential coding errors or bad coding practices. It is very easy to configure and also used for formatting code. To configure eslint, […]

January 8, 2022 in Code examples
Deven
Deven wrote

How to convert byte array to string in Golang

In this article, you will learn about how to convert a byte array to a string in the Go language. In Go language, strings are nothing but a combination of an array of bytes. You can convert a string into a bytes array, similarly, you can convert a byte array into a string. In this […]

January 8, 2022 in Code examples
Deven
Deven wrote

How to convert byte array to string in Golang

In this article, you will learn about how to convert a byte array to a string in the Go language. In Go language, strings are nothing but a combination of an array of bytes. You can convert a string into a bytes array, similarly, you can convert a byte array into a string. In this […]

January 8, 2022 in Code examples
Deven
Deven wrote

How to submit a form in VueJS

In this article, you are going to learn about how to submit a form in VueJS. Working with for is an essential part of any website development. To take user’s information or any information from the client side, using form is very handy approach. You can easily create a form in VueJS. In general, when […]

January 8, 2022 in Code examples
Deven
Deven wrote

How to use Vuetify grid system

In this article, you are going to learn about Vuetify grid system. Vuetify grid system is a very useful resource to make your web application responsive. It is used extensively for creating specific layouts. It comes with a 12 point grid system using flexbox. You can target specific media screen sizes with the help of […]

January 8, 2022 in Code examples
Deven
Deven wrote

What is the best way to declare global variable in VueJS

In this article, you will learn about how to declare global variables in VueJs. While working with VueJS, you need to declare a global variable so that you can access it from anywhere in the project. This is quite useful to declare a global variable otherwise you need to declare it from each file where […]

December 28, 2021 in Code examples & Vue
Deven
Deven wrote

How to create slide transition in VueJS

In this article, you are going to learn about how to create slide transitions in VueJS. VueJS is an open-source JavaScript front-end framework. You can do many interesting things by using VueJS. Creating a slide transition is one of them. It will help you to make your web app more interactive and user-friendly. Let’s see […]

December 25, 2021 in Code examples
Deven
Deven wrote

How to convert HTML table data to excel in JavaScript

In this article, you will learn about how to convert HTML table data to excel in JavaScript. In JavaScript, you can do lots of interesting things. Converting HTML table data into excel is one of them. It is very useful and most of the time it is done by using the server-side method. But JavaScript […]

December 24, 2021 in Code examples
Deven
Deven wrote

How to use setInterval in VueJS

In this article, you are going to learn about how to use setInterval in VueJS. The setInterval() method lets you call a function with a fixed time delay between each call. It returns an interval ID that is used to identify the interval uniquely. This method will keep executing the particular code snippet until you […]

December 24, 2021 in Code examples & Vue
Deven
Deven wrote

How to get selected value using on change in VueJs

In this article, you will learn about how to get a selected value using on change in VueJS. In VueJS, you can get a selected value. To do so you need to use v-on:change directives. This is provided by VueJs and you can use it instead of using v-model. Another way of declaring this directive […]

December 23, 2021 in Code examples & Vue
Deven
Deven wrote

How to use img src in VueJs

In this article, you are going to learn about how to use img src in VueJs. Vue is a modern JavaScript framework that is widely used in building user interfaces and progressive web applications. With Vue, you can do lots of eye-catching things but here I will show you how you can work with img […]

December 23, 2021 in Code examples & Vue
Deven
Deven wrote

Vue export default vs Vue new

In this article, you will learn about the difference between Vue export default and Vue new. Vue is a progressive JavaScript framework used to build web interfaces and one-page applications. To work with Vue you need to declare it. Let’s see the ways of declaring it: Using Vue new: You can create a Vue instance […]

December 15, 2021 in Code examples