Database Connection in Next.jsThe code sets up a MongoDB connection using Mongoose and implements a caching mechanism to avoid opening multiple connections during the application's lifetime (especially useful in environments like serverless functions or during development with ho...Feb 1, 2025 · 4 min readviveksblog.hashnode.dev
Set and Map in JavaScriptSet:- In JavaScript, a set is an object that stores a collection of unique values. The values can be of any type, such as numbers, strings, objects, or even other sets. The Set object was introduced in ECMAScript 6 (ES6), and it provides a convenient...Mar 18, 2023 · 3 min readviveksblog.hashnode.dev
HTML EmmetIntroduction to Emmet Emmet is a plugin for text editors that allows you to write HTML and CSS faster by using abbreviations that expand into full code. It can save a lot of time when writing code because you can type a few characters and then expand...Jan 21, 2023 · 1 min readviveksblog.hashnode.dev
HTML EntitiesSome characters are reserved in HTML. If you use the less than (<) or greater than (>) signs in your text, the browser might mix them with tags. To display a less than sign (<) we must write: < or < Character entities are used to display reserved cha...Jan 21, 2023 · 2 min readviveksblog.hashnode.dev
What is HTML and Comments,Tags ,Elements,AttributesHTML HTML stands for Hyper Text Markup Language. It uses to create website structure. Comments HTML comments are a way to add notes and explanations to your HTML code without them being visible to users when the page is rendered in a web browser. The...Jan 21, 2023 · 2 min readviveksblog.hashnode.dev