What are arrays?Arrays are the collection of elements that can hold various datatypes like numbers, string, objects. They provide a powerful way to manage and organize multiple values under a single variable name. Arrays are initialized in square brackets and the indexing starts from 0. Array are object and user-defined datatypes. It is mutable that means it can be modified when … [Read more...]
Creating an Animated Paper Plane Button Using HTML, CSS, and JavaScript
Introduction: As part of my journey through the #100DaysOfCode Challenge, I recently worked on an exciting project for Day 25. In this project, I created an animated paper plane button using HTML, CSS, JavaScript, and GSAP (GreenSock Animation Platform). This interactive button adds a fun and engaging element to web pages, making it perfect for various applications such as form submissions or … [Read more...]
Essential Front-End Interview Topics Explained #day 1
What is the difference between HTML and HTML5? HTML5 stands as the most recent version of HTML, introducing new elements, attributes, and APIs when compared to older HTML versions. Explain the CSS box model. The CSS box model describes how elements are displayed on a webpage. It consists of content, padding, border, and margin. What are CSS media queries? Media queries allow you to apply … [Read more...]
Understanding Websites: How Web Development Works
The internet has become a crucial part of our lives, and websites serve as doorways to the vast quantity of information and services it offers. Websites may be found everywhere, from online shopping and banking to communicating with loved ones and reading the latest news.Have you ever wondered how these elaborate digital masterpieces work? In this blog article, we'll explore the intriguing world … [Read more...]
Demystifying JavaScript Engines and Asynchronous Operations
JavaScript has revolutionized web development by enabling dynamic and interactive experiences on the web. At the heart of JavaScript's execution lies the JavaScript engine, a complex piece of software responsible for interpreting and executing JavaScript code efficiently. Additionally, JavaScript's asynchronous nature allows it to handle non-blocking operations seamlessly, enhancing performance … [Read more...]
The story behind Tailwind's CN function
<button className={cn("px-4 py-2 rounded", { "bg-blue-500 text-white": isPrimary, "bg-gray-200 text-gray-800": !isPrimary, })} > Click me </button> Have you ever wondered why everyone is using the cn function? That's what we'll dive into today. There are two problems cn solves: Class conflicts Conditional classes Let's say we have a button component with bg-blue-500 … [Read more...]
The Magic of keyof and typeof in Typescript
Ever get stuck writing out long unions for component props based on an object? There's a cleaner way!This post explores using keyof and typeof to automatically generate type unions from object keys for your React components. The Problem: Let's say you have a button component with different variants based on classNames: const classNamesMap = { primary: "bg-blue-500 text-white", secondary: … [Read more...]
5 of the Best Free FrontEnd Tutorials Out There
Hey there, aspiring frontend developers! Are you looking for some top-notch free tutorials to kickstart your journey? Look no further! We've got you covered with this list of the best free frontend tutorials out there.1. FrontEndMentor FrontEndMentor offers a wide range of real-world projects and challenges to help you improve your frontend skills. With a focus on practical experience, you'll be … [Read more...]
The Ultimate Guide to DOM Manipulation: Beginner to Expert
Have you ever wondered how a simple button on a website changes color when you hover your mouse over it? It might seem like magic, but it's actually the power of DOM manipulation at work! In this article, we'll unveil the secrets behind this trick and many more, teaching you how to control the magic yourself.1. Understanding the DOM Imagine a web page as a vibrant family. Each element on the page, … [Read more...]
Building a Menubar with Hover Reveal Effect Using HTML and CSS
Are you ready to enhance your web development skills with an exciting project? In today's tutorial, as part of Day 24 of the #100DaysOfCode Challenge, we'll be creating a stylish menubar with a hover reveal effect. This project not only adds visual appeal to your website but also provides a great opportunity to practice CSS and HTML.Before we dive in, make sure you have the full source code … [Read more...]
Breaking Free from Tutorial Hell:
Hey Code Explorers!Ever find yourself stuck in an endless loop of tutorials, feeling like you’re collecting snippets of code but not really learning anything? Yeah, that’s the notorious “tutorial hell.” But worry not! Today, I’m spilling the beans on how to not just escape this dreaded loop but also remember what you’ve learned along the way. Let’s get coding and truly understand the magic behind … [Read more...]
Readonly and proxy in JS
It's true that we never have the real constant in JS like in any other language out there (Java, C#, etc.), you name it.In this blog, I'll walk you through how we can make it possible in JS. Of course, we need more than a constant keyword in JS. Without further ado, let's get startedMaking an object truly immutable As we know, objects can store properties. Until now, a property was a simple … [Read more...]
Strings in Javascript
Gone are the days of olf string concatenation with the + operator. In modern JavaScript, we have a better alternative: string interpolation. Let's see how it transforms our code.Consider the following variables: const name = "harsh"; const repoCount = "50"; console.log(name + " " + repoCount + " value"); Lets read a better way to concatenate strings with the help of string interpolation String … [Read more...]
Building Robust Web Applications: Scalability and High Traffic Management
Definition of Web ApplicationA web application is a software program that runs on a web server and is accessed via a network connection using HTTP. It interacts with users through a web browser with a more interactive experience compared to traditional websites. Importance of Scalability and High Traffic For web applications, the ability to scale and handle high traffic is critical. Scalability … [Read more...]
Optimizing Your React Projects with React-Bootstrap
More than lines of code are needed to create a successful application. A good layout, interesting design and user-friendly interface have to be considered as well. These components are important because they attract people’s attention and make them realize the benefits of using your product. However, it may seem difficult to implement all these things in one project but with the help of … [Read more...]
Web Development: 7-Phased Process You Should Know
The increasing importance of web development for a solid digital presence has pushed several businesses into having one. As a business owner, you might consider contacting a web development services in India to have your website. However, it is good to do homework and know the aspects/concepts of web development. While there are many, this blog will focus on the stages of website development.A … [Read more...]
Conquering Your Routes: A Guide to Laravel Routing
Hey there, web dev warriors! Today, we're embarking on a quest to master the highways and byways of your Laravel application – the realm of routing. Routing is the invisible mapkeeper behind the scenes, directing users to the exact functionalities they need based on the URL they enter. Let's break down how to define clear paths, handle user requests smoothly, and ultimately build a well-organized … [Read more...]
What’s the difference between never and void in TypeScript?
In TypeScript, both never and void represent situations where a function doesn't return anything, but they're used in different contexts.void: Think of void as the absence of a specific type. When a function returns void, it means it doesn't return any value at all. It's like saying, "This function does its job, but it doesn't give anything back." You often see void used with functions that … [Read more...]
Mastering the Art of Front-End Development: A Practical Guide for Beginners
Introduction Web development has become an essential skill in the modern digital age. As the first point of contact between users and websites, front-end development plays a crucial role in creating engaging and user-friendly interfaces. This comprehensive guide aims to provide beginners with a step-by-step approach to mastering the art of front-end development, encompassing the fundamentals of … [Read more...]
Web Performance: Core Web Vitals
En la actualidad, el desarrollo de una página web ya no es suficiente para ofrecer servicios al público de manera efectiva. Es importante brindar una experiencia óptima al usuario desde el primer momento. ¿Alguna vez has entrado a un sitio web y te has encontrado esperando demasiado tiempo para que cargue? Lo más probable es que te hayas sentido frustrado y hayas buscado alternativas más … [Read more...]