max-width and width in CSSThe max-width and width properties in CSS are used to control the width of an element, but they have some important distinctions: width: This property sets the exact width of an element. It specifies the width in pixels, percentages, or other length...Jul 8, 2023·2 min read
Application of the StackA stack is a data structure that follows the Last In First Out (LIFO) principle, which means that the last element added to the stack is the first one to be removed. Some common use cases for stacks include: Implementing undo/redo functionality: A s...Jan 15, 2023·2 min read
Recursion in JavaScriptIn JavaScript, recursion is a technique for iterating over an operation by having a function call itself repeatedly until it arrives at a result. It can be a useful alternative to using loops for certain tasks, especially when the number of iteration...Jan 10, 2023·1 min read
Javascript interview cheat sheetScope The scope is the current context of execution in which values and expressions are "visible" or can be referenced. If a variable or expression is not in the current scope, it will not be available for use. Scopes can also be layered in a hierarc...Sep 11, 2022·4 min read
Arrays in JSAn array is a collection of data. It is widely used in all programming languages Including JavaScript. It is often used when we want to store list of elements and access them by a single variable. A pair of square brackets [] represents an array in J...Aug 27, 2022·4 min read
CSS selectorsWhat is a CSS selector? CSS selectors are used to target the HTML elements on our web pages that we want to style. h1 { color: red; background-color: black; } p { color: aqua; } h1 is a CSS Selector , it targets the h1 element text color=red ,...Jul 22, 2022·3 min read
Position in CSSThe position CSS property sets how an element is positioned in a document. position: static; The element is positioned according to the normal flow of the document. The top, right, bottom, left, and z-index properties have no effect. This is t...Jul 22, 2022·2 min read