Skip to content

Tag Archives: JavaScript-Questions

Cocktail Sort is a variation of Bubble sort. Cocktail Sort traverses through a given array in both directions alternatively. In order to know more about… Read More
In this article, we will be discussing the PreventDefault & stopPropagation methods with suitable code examples for each condition & then we will see the… Read More
In this article, we will learn about how to get information related to the webpage like hostname, port number, etc. We will also see the… Read More
In this article, we will see what is the problem with objects in JavaScript and why we need to “deep-freeze” an object in JavaScript. We… Read More
Writing a function in TypeScript is similar to writing them in JavaScript but with added parameters and return type. Note that any JavaScript function is… Read More
In this article, we will discuss the difference between NodeJs, AJAX, and JQuery. First, let us discuss JavaScript, JavaScript is one of the fastest-growing programming… Read More
Gnome Sort also called Stupid sort, is based on the concept of a Garden Gnome sorting his flower pots. In order to know more about… Read More
Light-on-dark color scheme, also called black mode, dark mode, dark theme, or night mode. In this mode, light-colored text, icons are displayed on a dark-colored… Read More
In this article, we will see how to apply a function against an accumulator and each key in the object in JavaScript. Accumulators can be… Read More
Enumerable Properties: All the properties of an object that can be iterated using for..in loop or Object.keys() method are known as enumerable properties. In this… Read More
In this article, we will learn how a .js file is executed on the browser by using following multiple approaches. Refer to Server side and… Read More
The predicate in JavaScript is the same as the predicate maths which returns true or false.  The predicate is just like a function that determines… Read More
Flux: It is a JavaScript Architecture or pattern for UI which runs on a unidirectional data flow and has a centralized dispatcher. It is an… Read More
A chessboard pattern can be created very easily using JavaScript and the concept of document object module (DOM). Using this method, you can create a… Read More
In programming, functions are used to reduce the effort of writing the same instance of code repeatedly. In this article let us see how we… Read More