codedamn

Category: Javascript

JavaScript if/else statements – JS Conditional Statements

Conditional statements in JavaScript (if-else) can be used to make certain decisions in your script. In this mini blog post, we’ll learn about how if-else statements work in a simple and intuitive way. Table of Contents IntroductionObjects in JavaScriptUsing if-else for logic buildingCalcul...

What Is const and let in Javascript? JS Variables and Data Types

JavaScript, or JS, is the language of the web. Understanding the basics (vanilla JavaScript) will build a strong foundation for you to actually work with frameworks like React and Node.js.  This is the first in a series of articles. By the end of this article, you should have a good understa...

Features Of JavaScript

Features of JavaScript- Features to understand and learn! JavaScript is a very famous language and on GitHub, most of the repositories contain JavaScript code. In this blog, we will see the most important features of JavaScript in depth. 70% of professional web developers choose JavaScript, becau...

Reduce method in JavaScript

Hey readers, in this article we will be learning about Reduce method in JavaScript, what it is and how to use it using an example. If you’re new to JavaScript, then this might be the article that you should read or even if you’re an intermediate. Table of Contents What is JavaScript?What is reduc...

Static vs Const in JavaScript-Complete Guide

Hey readers! In this article, we will be talking about some differences between static versus const in JavaScript. Introduction JavaScript is one of the widely used languages when it comes to building web applications as it permits developers to encase HTML and CSS code in it to make web apps int...

What is JavaScript?

What does JavaScript mean, and why does it have more importance? To make an interactive and dynamic and friendly interface, JS(JavaScript) which is a programming language is mainly used by web browsers. Maximum of the features and applications that make the internet indispensable to modern lifest...

Top JavaScript Animation Libraries

The entire feel and touch of a website can be improved using animation libraries. They create a pleasant user experience when properly implemented. Animations, on the other hand, are a simple way to grab the attraction of your visitors. There is certainly a slew of JavaScript libraries that we ca...

indexOf() String Method in JavaScript

Programmers all over the world use Javascript to develop dynamic and interactive web content like programs and browsers. JavaScript is the most widely used programming language in the world, with 97.0 percent of all websites using it as a client-side programming language. Client-side languages ar...

Document.write in JavaScript – Complete Guide

Do you want to start coding and developing technical projects but have no idea how and where to start? Do not worry, we got you covered! If you are fond of web development then you have to start your coding journey by learning HTML, CSS, and JavaScript. JavaScript is one of the most widely used&h...

Destructuring in JavaScript

Table of Contents What is destructuring in JavaScript?Array Destructuring Variables are greater than elements in the array Variables are less than the number of elements Spread operator and rest operator Interchanging of variables Destructuring in nested arraysObject destructuring1) Nested object...

switch case in JavaScript

The switch is a statement used to perform actions based on conditions. Its functionality matches that of the if-else statement. You might be guessing why there are two keywords with the same functionality. There are some such cases where we prefer using a switch statement instead of if-else. The ...

Exception Handling in JavaScript

Coders make mistakes that are in the form of errors or exceptions. Dealing with these exceptions is an issue every programmer faces. It is inevitable! If you are just starting with coding or are not aware of how to deal with errors, we got you! Here we will discuss exception handling in JavaScrip...

Hoisting in JavaScript

One of the interesting aspects of JavaScript for new JavaScript developers is the fact that we can make things available before declaring them. It may sound weird. Let us understand the concept of hoisting in JavaScript in detail with this blog.  Table of Contents What is hoisting in JavaScript?V...

Callback Hell in Javascript

More commonly known as the Pyramid of Doom, Callback hell is basically an off-pattern seen in the code, particularly while asynchronous programming. It can also be generalized as slang using hazardous numbers of “if” statements. Once your projects become complex and their requirements...

Memory management in JavaScript – Detailed And Crisp

Javascript is a high-level language that relies on current browsers to perform garbage collection. This gives Javascript developers the notion that they don’t need to know what’s going on behind the scenes or do anything to improve their Javascript app’s memory management. Langu...

Split string in JavaScript

Table of Contents What’s a string in Javascript?What is the split() string method?Syntax:SeparatorLimitReturn valueSplitting a string by each character:Split with a limit:Reversing a string:Conclusion What’s a string in Javascript? In any programming language, a string is a sequence o...

Creating objects in JavaScript

Table of Contents IntroductionCreating Objects1) Object literals2) Using Object.create()3) Using the keyword new4) Using ES6 classes Introduction Let us start our discussion with what an object in JavaScript is. So, an object is basically a collection of related data.  An object can contain all f...

Console.log in JavaScript – Complete Guide

If you are aspiring to become a pro web developer, you need to have a strong understanding of the basics of HTML, CSS, and JavaScript. JavaScript is widely used for the front-end and back-end development of web pages and mobile applications. Today’s article is going to be a tutorial on one of the...

What are the advantages of JavaScript?

Advantages of JavaScript – choose your language wisely! In this blog we will be seeing some major key aspects of our topic i.e. “Advantages of JavaScript”, and through this blog, it will become easier for you why JavaScript is better and has distinguished features than other lan...

JavaScript Array Functions

Table of Contents Array Functions In JavaScript that make your code clean!Popping and PushingShifting ElementsSplicing and Slicing ArraysConclusion Array Functions In JavaScript that make your code clean! In the programming field, an array is a collection of elements or items. Arrays keep the inf...

What are keywords in JavaScript?

Table of Contents Keywords in JavaScriptList of KeywordsletconstWhileforswitchexportbreakreturncontinueyield Keywords in JavaScript Keywords in JavaScript are a set of reserved words that cannot be used as names of functions, labels, or variables as they are already a part of the syntax of JavaSc...

What are variables in JavaScript?

Table of Contents Variables in JavaScriptGlobal variable and Local variableTypes of variables1) Number2) Strings3) Boolean4) Arrays5) ObjectsWays to declare a JavaScript Variable1) Using var keyword2) Using the let keyword3) Using the const keywordDifferences between var keyword and let keyword V...

Sets in JavaScript

The way of structuring the data plays an important role in our ability to perform different operations on data or to solve problems that are related to the data. JavaScript has some basic data types such as arrays, objects, strings, maps, sets, etc. Let us discuss the data type sets in this artic...

Getting Started With JavaScript – A Quick Introduction

Table of Contents JavaScript: Definition, Function, Features, and Benefits.How does it work?FeaturesMost liked featuresJavaScript VariablesJavaScript Local VariableJavaScript Global VariableJS Data Types JavaScript: Definition, Function, Features, and Benefits. To create and build dynamic and int...

What is const in JavaScript – Complete guide

Hey readers, in this article we will understand the const keyword in JavaScript, in-depth. Table of Contents IntroductionConst keyword in JavaScriptConst ImmutabilityConclusion Introduction In Javascript, a variable created using the ‘let‘ or ‘var‘ keyword can be re-assign...

Remove duplicate from an array in JavaScript

Arrays help store data in a sequence. There might be chances where we mistakenly store duplicate values in an array. Here comes the need to remove the duplicate values from that array. One of the most asked questions in many interviews is regarding removing duplicates from an array. Table of Cont...

History of Javascript

Javascript was initially developed as a language to handle browser validations and nothing more but who knew Javascript will grow and gradually become one of the best programming languages to ever exist. We will take a look at the long and exciting journey of Javascript that has made it a program...

Effective JavaScript – Honest Review & How to Learn from it?

JavaScript’s demand is growing day by day in terms of front-end development and because of this, it is one of the best programming languages to earn and learn. And to master and learn the JS language, books will be needed. So in this article, we are going to see about the JS Book i.e. ̶...

Check if an Object has a Property in JavaScript

There are a few trusted methods to know whether the object has a specific property or not when working with Javascript. This blog will take you through two of the best methods to identify whether an object has property or not. We’ll start with discussing the hasOwnProperty method in javascr...

Async/Await in Javascript

Introduced by ES7, async/await has grown to become a considerable development in the field of asynchronous programming. It provided the Javascript users with an ability to use synchronous coding clubbed with the access of resources asynchronously, so it doesn’t halt the main code sequence o...

Top 7 JavaScript timeline libraries you should know about!

Making timelines are very vital and help the reader understand the growth as well as the development of the company or person. This not only narrates the story beautifully in chronological order but also seems to be visually pleasing. Today, in this article we will share some of the top JavaScrip...

Fibonacci series in JavaScript

Table of Contents What is the Fibonacci series?1) Using for loop2) Using while loop3) Using recursion4) Binet’s formulaConclusion What is the Fibonacci series? Fibonacci series is the series of numbers that are calculated by adding the values of the previous two numbers in the sequence. The...

JavaScript void(0)

Hey readers, in this article we will be learning about what is JavaScript void(0). If you’re new to JavaScript, do check out the JavaScript fundamentals course on Codedamn. Topics that we will be covering in this article are the Introduction to JavaScript void(0) and its uses. After this, in orde...

Inheritance in JavaScript & Its Types With Examples.

In real life, everyone plays different roles. For instance, a woman can be a mother, employee as well as a wife at the same time. The same woman performs different tasks depending on which role she is playing at that moment. This act of one object or class performing different tasks as per the ro...

For loops in JavaScript

Loops in JavaScript allow us to do something repeatedly in a quick and easy way. We use loops to access the items of an array or an object. Every single loop is known as an iteration.  Some of the common types of loops are – For For / in For/of While Do / while Let…

What is the JavaScript Logo?

In 1995, Brendan Eich created JavaScript which we all currently use widely for the development of web projects and programming. Till today it is considered one of the most extensively used software languages in the world. If you’re a software developer, then you must be using JavaScript alm...

Evolution of JavaScript versions – Everything You Need to Know

JavaScript is one of the most well-known globally used software languages in today’s generation. It has been there since 1995 but has gone under immense changes and upgrades. This programming language was invented by Brendan Eich. By 1997 it became an ECMA standard. Today we will discuss th...

Roadmap to become a JavaScript Developer

JavaScript is heavily relied on. From the big tech giants to the smallest startup company or small businesses, everyone uses JavaScript! Furthermore, the digitalization of the world has shifted the world onto the virtual platform. All this has increased the need for a JavaScript developer. If you...

Best Books for JavaScript

If you’re a web developer or have little knowledge about web development, then you already know that JavaScript is the most acknowledged programming language in today’s world. It is a scripting language often used to make static websites. But these days, this language manages each asp...

Top 5 JavaScript Frameworks to Increase Your Productivity

Table of Contents What is a JavaScript Framework?JavaScript Frameworks FunctionalityNeed for a FrameworkSome famous frameworks 1) Angular2) Next.js3) Vue.js4) Ember.js5) CypressSelection of a right framework What is a JavaScript Framework? Frameworks are the set of previously written codes that a...

Best JavaScript IDEs

Have you ever wondered what is the exceptional IDE for JS improvement? Before we begin the collection let’s examine  IDE and JS. Table of Contents JavaScript Benefits of JSWhat does IDE mean?Features of an IDE1. Atom(IDE)Atom Features:-2. Brackets(IDE)Brackets Features:-3. Eclipse(IDE)Eclip...

JavaScript Project Ideas for Beginners

Hey readers, in this article we will be talking about top JavaScript projects that beginners should make in order to learn JavaScript. Here are a few projects beginners should try out. Table of Contents JavaScript: An OverviewUse cases: 1. Calculator using JavaScript2. Unit convertor3. FlashCard4...

JavaScript vs Python

Every year, Stack Overflow surveys over 100,000 builders to find out more about programming traits, challenges, and possibilities. In 2018, its survey revealed that Python becomes the language that the maximum wide variety of developers (25.1%) is desired to examine, even as JavaScript becomes a ...

Microservices architecture Node js- full guide

Hey reader! Do check out Node js architecture blog before reading this article, here we will be talking about how microservices architecture is used in Node js and a glimpse of what microservices are. Besides this, some practices and enlisted in order to design more architecture patterns in Node ...

Data Types in JavaScript

If you are fascinated with the development of websites and you are at the beginning of your journey of making them then you should know about JavaScript. It is used to develop websites, websites server (using NodeJS), and create mobile applications.  It is an object-oriented programming language ...

Difference between JavaScript and Jquery

Table of Contents JavaScript and JQuery-Which one you should go for?JavaScriptJQueryDifferences!!Conclusion JavaScript and JQuery-Which one you should go for? When you start coding as a beginner, you will come to know about many options. Over a period of time knowing many new frameworks and langu...

What are the uses Of JavaScript?

Want to know the uses of JavaScript? In order to master any programming language or any technology, the main thing you should always focus on is building some projects/applications after you have learned its basics. That makes it very crucial to realize the skills of any programming technology or...

Top 5 JavaScript Libraries to Check Out Right Now!

JavaScript is one of the most widely used software languages for web development. Node is a platform built on JavaScript runtime for creating fast and highly scalable applications. Today we are going to discuss the five top must know Node packages, which you are probably missing. These javascript...

String methods in JavaScript

Table of Contents What is a string?String Methods1) Finding the length of a string2) Returning a specific letter from the string3) Checking substring in a string4) Slicing a string5) Changing the case of the string6) Replacing a part of the string7) String concat8) Removing white spaces9) at()Let...

Type of function in JavaScript

Different types of functions in JS, that everyone should know! JavaScript Functions JavaScript provides capabilities similar to most of the scripting and programming languages. In JavaScript, a feature permits you to outline a block of code, supply it a name, and then execute it as usually as you...