javascript

Stack Implementation Using Javascript (Linked List)

Stack Implementation Using Javascript (Linked List)

Introduction If you are not confident or want to understand more about Linked list and their types and how we can do operations on the same please refer to my other article related to the Single Linked List and Double Linked List Approaching Single and Double Linked Lists Using Javascript With All Operations:- Last Stop Solution This Article is about using the Single linked List and creating a Stack data Structure. Feel free to reach out to me if you have any concerns Enjoy the code, Happy Codeing. class Node { constructor(value) { this.value = value; this.next = null; }…
Read More
Competing with JSON.stringify – by building a custom one

Competing with JSON.stringify – by building a custom one

This came up during a discussion with my friend about Recursion. Why not build a Javascript JSON.stringify method as a recursive programming exercise? Seems like a greatidea. I quickly drafted out the first version. And it performed horribly! The time required was about 4 times that of the standard JSON.stringify. The first draft function json_stringify(obj) { if (typeof obj == "number" || typeof obj == "boolean") { return String(obj); } if (typeof obj == "string") { return `"${obj}"`; } if (Array.isArray(obj)) { return "[" + obj.map(json_stringify).join(",") + "]"; } if (typeof obj === "object") { const properties_str = Object.entries(obj) .map(([key,…
Read More
Como somar horas no Google Sheets usando critérios para filtrar linhas?

Como somar horas no Google Sheets usando critérios para filtrar linhas?

Olá, pessoal! Hoje quero compartilhar um script super útil que criei para resolver um problema comum no dia a dia. Se você já tentou somar "duração" no Google Sheets, deve ter percebido que as fórmulas SUMIF e SUMIFS não funcionam para somar durações de eventos ou produtos com base em critérios específicos. Isso pode ser um obstáculo dependendo do tipo de cálculo que você precisa fazer. Mas não se preocupe! O Google Sheets permite criar scripts em JavaScript e usá-los como fórmulas personalizadas. No meu script, criei duas variações: a primeira aceita um critério e a segunda até dois. Estou…
Read More
A Comprehensive Guide to Learning React.js

A Comprehensive Guide to Learning React.js

React.js, developed and maintained by Facebook, has become one of the most popular JavaScript libraries for building user interfaces, particularly single-page applications (SPAs). Known for its flexibility, efficiency, and ease of use, React has a large community and a wealth of resources for developers at all levels. Whether you’re a beginner or an experienced developer looking to add React to your skill set, this tutorial will guide you through the fundamentals of React.js. 1. What is React.js? React.js is an open-source JavaScript library used for building user interfaces, especially for single-page applications where you want a fast, interactive user experience.…
Read More
5 Best Practices Every Frontend Developer Should Follow

5 Best Practices Every Frontend Developer Should Follow

These days even if you know HTML, CSS, and JavaScript well, you’re still in a highly competitive field. With so many frontend developers out there, the only way to stand out is by following best practices. Here are five of those that can help you stand out as a beginner: *1. Write Clean, Readable Code: * Use proper indentation, meaningful variable names, and comments to explain what your code does. *2. Keep Your CSS Organized: * Break all your styles down into smaller, modular pieces, and use naming conventions like BEM (Block, Element, Modifier) to keep your styles structured and…
Read More
Define() In Javascript: A Clear Explanation

Define() In Javascript: A Clear Explanation

Originally published on Makemychance.com The define() keyword is a fundamental concept in JavaScript programming. It is used to define a new module, which can be imported and used in other parts of the program. The define() keyword is part of the Asynchronous Module Definition (AMD) API, which is used to load modules asynchronously in the browser. When a module is defined using the define() keyword, it is given a name and a list of dependencies. The dependencies are other modules that this module requires in order to function correctly. When the module is loaded, the dependencies are loaded first, and…
Read More
Why JavaScript Is Not ‘True’ OOP

Why JavaScript Is Not ‘True’ OOP

JavaScript is a language loved by many, but it often gets a bit of a bad rap when it comes to object-oriented programming (OOP). If you’ve come from a background in languages like Java, C++, or C#, you might have heard that JavaScript isn’t a "true" OOP language. But what does that really mean? Let’s unpack this concept and understand why JavaScript stands apart from traditional OOP languages. 1. Prototype-Based Inheritance: The Core Difference At the heart of the matter is JavaScript’s use of prototype-based inheritance. In traditional OOP languages, you create classes, which are blueprints for objects. These classes…
Read More
Building Your First Full-Stack Application

Building Your First Full-Stack Application

ChatGPTMemory updated So, you’ve decided to take the plunge into full-stack development. Awesome! But now what? Where do you even start? Don’t worry—I’ve got you covered. By the end of this article, you’ll know exactly what steps to take to build your first full-stack application. We’re not going to dive into the deep end with complex frameworks right away. Instead, we’ll build a basic, yet functional, full-stack app. This guide will focus on the essentials: front-end, back-end, and connecting the two. Let’s get started. Step 1: Understanding the Basics Before you write a single line of code, you need to…
Read More
Say JS easy, got roasted!!!

Say JS easy, got roasted!!!

JavaScript is frequently touted as an "easy" programming language, especially for beginners. This perception often stems from its accessibility, flexibility, and wide usage. But is JavaScript really as simple as it seems? Let's delve into why this popular language is often underestimated and why its simplicity might be deceptive. JavaScript's syntax is relatively straightforward compared to some other languages. Its dynamic nature allows developers to write code quickly without worrying about complex type declarations or rigid syntax rules. This ease of entry makes JavaScript an attractive option for new programmers, who might find it easier to grasp initially. However: This…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.