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 convert HTML text to PDF in JavaScript

In this article, you will learn about how to convert HTML text to PDF by using JavaScript.Converting an HTML file into PDF is a very useful thing to do and you may save a bulk amount of data into a pdf file easily. In JavaScript, you may convert your HTML file into PDF and to […]

January 13, 2022 in Code examples & Javascript
Deven
Deven wrote

What is time differences in GoLang?

In this article, you are going to learn about what is time differences in the Go language. GoLang provides time packages to work with the time and in this package, you will get the functionality to determine a time and also see it. We will see the time differences between two variables with the help […]

January 13, 2022 in Code examples & GoLang
Deven
Deven wrote

How to create and save schema array of strings in Mongoose

In this article, you will learn about how to create and save a schema array of strings in Mongoose. Mongoose is an ODM(Object Data Modeling) library for MongoDB and it lets you create a schema model and save documents in MongoDB. In the Mongoose schema model, you can create an array of strings. To create […]

January 13, 2022 in Code examples & Node
Deven
Deven wrote

How to use a pointer in a function in GoLang

In this article, you will learn about how to use a pointer in a function in the Go language. A pointer is nothing but an object that stores a memory address. Like many programming languages, the Go language also has the functionality of a pointer. In the Go language, pointers are used as a variable […]

January 13, 2022 in Code examples & GoLang
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