Callbacks in Javascript

Before diving into callbacks, we have to understand that, in javascript, functions are first-class objects. As such, we can dynamically create, destroy, pass to a function, return as a value a first-class object. Also, it has all the rights as other variables in the programming language have. Callbacks in Javascript If we pass a function … Read more

Advantages of JSON in web programming

JSON stands for ‘JavaScript Object Notation’. We use JSON for storing and exchanging data between server and client (browser). However, there are other uses and advantages of JSON beyond this in web programming. Firstly, we have to understand what JSON is. We can only exchange data in text format. That is why, JSON is a … Read more

JWT Authentication in Express.js using Passport.js

In the previous post, we created an express.js application step by step. If you haven’t read that post, I suggest you do it because the basic steps are covered in the post. Therefore, you can check it out from here: https://nepcodex.com/2019/09/create-an-express-application-with-database/. Also, since we are trying to build a REST API, we will remove many … Read more

Create an Express Application with Database

In this post, we will learn how to create an express application with a database. Not only this, but also we will include a templating engine. For the record, I don’t say you have to do the way I do here, but you will get the gist of what to do. So, let’s begin by … Read more

More Interesting Facts in JavaScript

In the previous post, we saw some basic interesting facts in JavaScript. In the same way, we are going to view other interesting facts in this post. If you haven’t viewed that post, then I suggest you do have a loot at it. More Interesting Facts Var and Let Let’s see the code below: In … Read more

Some Interesting Facts in JavaScript

JavaScript, which was created to “make web pages alive”, is one of the feature-rich language. However, this scripting language has got many peculiarities which is distinct from other programming language. So, here we are going to view some interesting facts in JavaScript. We will see some history and some programming ways which are different from … Read more

Spread and Rest Operator in JavaScript

JavaScript (ECMAScript) is one of the powerful scripting language which provides many features to developer. In the first place, it is the technology which makes a website lively. Not to mention, there are many ways to do a task in JavaScript. This language might not have been started with that planning, but the standards are … Read more

Implement Queue in C – Example

In the previous post, we implemented stacks, which is quite useful in real life. However, there is another data structure that we see everyday around us, which we call it a queue. In computer science, we can find its applications in simulations, print spooling, processes, and many more. Before starting to implement queue with an … Read more

Implement Stacks in C – Example

In the previous post, we implemented linked list in C. In the same way, now we are going to implement stacks in c programming language by an example. We will be using a self-referential structure which stores an integer. Let’s see the example first, It is a bit easier to implement than that of stack … Read more

Implement Linked List in C

Before starting to implement linked list in C, let’s see what self-referential structures are. Also, you need to know about dynamic memory allocation, which you can find here in this link. For example, let’s define a structure like below: In the above struct node, we have two members, viz. integer member data and pointer member … Read more