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 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
Deven
Deven wrote

Learn How to install Vue by using CDN

In this article, you are going to learn about how to install Vue by using CDN. Vue is a lightweight front-end JavaScript framework that is widely used for building Single Page Applications. To work with Vue, you can install it in many ways, Using CDN(Content Delivery Network) is one of them. You need to use […]

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

Learn How to make JSON POST request in GoLang

In this article, you will learn about how to make JSON POST requests in the Go Language. JSON refers to the JavaScript Object Notation which is widely used in web development to transmit data. It is lightweight and human-readable. In the Go language, you can make a JSON POST request but to do so you […]

December 14, 2021 in Code examples & GoLang
Deven
Deven wrote

Learn How to read input from STDIN in Golang

In this article, you are going to learn about how to read input from STDIN in the Go language. In many programming languages, you can read data from a console and see the output. The Go language is not out of that. You can also read input from STDIN. To do so, you need to […]

December 14, 2021 in Code examples & GoLang
Deven
Deven wrote

Learn How to compare slices in Golang

In this article, you will learn about how to compare slices in the Go language. In Go language, slice stores a similar type of element which is a sequence of variable length. It is similar to an array but the main difference is the size of a slice can be resized on the other hand […]

December 14, 2021 in Code examples & GoLang
Deven
Deven wrote

Learn How to print in console in Golang

In this article, you are going to learn about how to print in console in the Go language. Print data in the console is a part and parcel of a programmer’s life. While writing code for a specific program, you often need to see whether the code is running perfectly or not before launching it […]

December 14, 2021 in Code examples & GoLang
Deven
Deven wrote

Learn How to do typecasting in Golang

In this article, you are going to learn about how to do typecasting in the Go language. Typecasting refers to the term of assigning the value of one data type to another. It is also known as type conversion. You can generally do type conversion in two ways – implicit type conversion and explicit type […]

December 14, 2021 in Code examples
Deven
Deven wrote

Learn How to use list in Golang

In this article, you will learn about how to use the list in the Go language. In the Go language, lists are referred to as linked lists which is one of the most important data structures used today. If you want to use the list in the Go language you need to import the list […]

December 14, 2021 in Code examples
Deven
Deven wrote

Learn How to push an element to array in Mongoose

In this article, you are going to learn about how to push an element to an array in the Mongoose. An array is the most common data structure in all programming languages. You can store multiple data into the array. In databases like mongoose, arrays are widely used. You can store an array of strings, […]

December 14, 2021 in Code examples & Javascript
Deven
Deven wrote

Learn How to print Substring in Golang

In this article, you will learn about how to print Substring in the Go language. In the Go language, strings are nothing but a slice of bytes that is immutable. You can easily generate a substring in the Go language. It is a part of String. Before jump into generating a substring from a string, […]

December 14, 2021 in Code examples & GoLang
Deven
Deven wrote

Learn How to check if key exists in Map in Golang

In this article, you will learn about how to check if a key exists in a map in the Go language. Go language provides a built-in associative data type named Map which is basically a collection of key-value pairs. On the map, you can retrieve, delete or update values with the help of keys. As […]

December 14, 2021 in Code examples & GoLang
Deven
Deven wrote

Learn How to use strings in Golang

In this article, you are going to learn about how to use strings in the Go language. In Go language, strings are immutable which means it is a read-only slice of bytes. Once you have declared a string you will not be able to change it in the Go language. This makes strings different from […]

December 14, 2021 in Code examples & GoLang
Deven
Deven wrote

Learn How to iterate over a map in Golang

In this article, you are going to learn about how to iterate over a map in the Go language. Golang provides a built-in associative data type named Map which is basically a collection of key-value pairs. On the map, you can retrieve, delete or update values with the help of keys. It is also known […]

December 14, 2021 in Code examples & GoLang
Deven
Deven wrote

Learn How to insert jQuery into Html

In this article, you will learn about how to insert jQuery code into Html file. jQuery is a JavaScript library that is fast and lightweight. It helps you to modify Html documents by writing less code compared to JavaScript. To write jQuery code into Html you need to add jQuery into that specific Html file. […]

December 10, 2021 in Code examples