Posts for Code examples

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

How to use CORS in ExpressJS

In this article, you are going to learn about how to use CORS in ExpressJS. ExpressJS is an open-source backend web application framework for NodeJS. It is very popular and provides a rich set of features for web development. CORS stands for cross-origin resource sharing. It is a package of NodeJS that provides browser security […]

January 21, 2022 in Code examples & Node

What is req.body in ExpressJS

In this article, you will learn about what is req.body in ExpressJS and, how to use it. ExpressJS is a very popular and open-source backend web application framework for NodeJS. In express, you will get req.body property. Basically, it is an object that will allow you to access data from the client-side in the form […]

January 21, 2022 in Code examples & Node

How to use enum in GoLang

In this article, you are going to learn about how to use enum in the Go language. Enum refers to the term as a special data type that contains a set of predefined constants. It is also known as an enumerator. Enums are used widely and very powerful but like some other programming languages, the […]

January 18, 2022 in Code examples & GoLang

How to copy file in NodeJS

In this article, you are going to learn about how to copy a file in NodeJS. NodeJS is an open-source JavaScript runtime built on the Chrome V8 engine for executing JavaScript code on the server-side. It is very fast and highly scalable with extensive large community support. You may perform different actions with the help of […]

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

What is void(0) in JavaScript

In this article, you are going to learn about how to use void(0) in JavaScript. In a normal sense, the word void refers to completely empty or blank. When it is used in programming languages, like JavaScript the word void(0) refers as it returns nothing. This operator is mostly used with the hyperlink. We use […]

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

How to use disable click event in jQuery

In this article, you will learn about how to use disable click events in jQuery. jQuery is a lightweight and feature-rich JavaScript library. You can do a lot more things and bring interactivity to your webpage. The purpose of jQuery is to write less and do more. That means you can do a lot more […]

January 15, 2022 in Code examples & Jquery
Deven
Deven wrote

How to add an object key dynamically in JavaScript

In this article, you will learn about how to add an Object key dynamically in JavaScipt. JavaScript is the most popular language at this moment and you can do a lot more things by using JavaScript. The main reason because of its popularity is that it can be used both in front-end and back-end. JavaScript […]

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

How to uppercase a text by using jQuery

In this article, you are going to learn about how to uppercase a text by using jQuery. jQuery is a lightweight and feature-rich JavaScript library. The purpose of jQuery is to write less and do more. That means you can do a lot more things by writing less code. In jQuery, you can convert a […]

January 15, 2022 in Code examples & Jquery
Deven
Deven wrote

How to use array of structs in GoLang

In this article, you will learn about how to use an array of structs in the Go Language. In the Go language, a struct is defined as a user-defined type that allows storing different types of values into a single type. In Object-Oriented Programming languages, you may hear about the class that is used to […]

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

How to use Mongoose virtual property

In this article, you are going to learn about how to use mongoose virtual property. In mongoose, you can use the virtual property. This will let you work logically on your project. The main benefit of using the virtual property is that it will not persist the document in the MongoDB database. That means you […]

January 15, 2022 in Code examples
Deven
Deven wrote

How to use md5 algorithm in GoLang

In this article, you are going to learn about how to use an md5 algorithm in the Go language. MD5 is an algorithm that is used to compute a hash value. Though it is cryptographically broken, it is still used widely. This algorithm produces a 128-bit hash value. In the Go language, there’s a package […]

January 14, 2022 in Code examples & GoLang