🧮 Day 42 | In-Built Objects in JavaScript Explored Math and Date objects in JavaScript today — the foundation of many logical operations. 🧠 Learned about: • Math constants & methods (PI, round, random, pow, sqrt) • Date creation, formatting & manipulation • Time control using get and set methods ✨ Key Takeaway: JS comes packed with powerful tools — we just need to know how to use them right! 🔗 GitHub: https://lnkd.in/dtdU9-zZ #WebDevelopment #JavaScript #CodingJourney #Frontend
Abdul Rahman Ali’s Post
More Relevant Posts
-
🚀 I used to think JavaScript was just “interpreted”… Until I discovered how much magic happens before a single line runs. When you write something simple like let sum = 10 + 5, the JS engine doesn’t just read it; it compiles it. Yes, JavaScript is compiled before execution (just-in-time). ⚙️ Here’s what actually happens behind the scenes: 1️⃣ Tokenization – your code is broken into keywords, operators, and identifiers. 2️⃣ Parsing – those tokens form an Abstract Syntax Tree (AST) that maps out the structure of your program. 3️⃣ Interpretation – the AST is turned into bytecode. 4️⃣ JIT Compilation – engines like V8’s TurboFan optimize bytecode into fast machine code. 5️⃣ Garbage Collection – memory is automatically cleaned up when no longer needed. All of this happens in milliseconds ⚡ Every single time your JS runs. I broke down each step in detail in my new Medium article 👇 👉 https://lnkd.in/dM7yNH6f #JavaScript #WebDevelopment #Programming #NodeJS #Frontend #V8 #SoftwareEngineering
To view or add a comment, sign in
-
-
✨ Today I learned something simple but powerful in JavaScript — Removing duplicates & flattening arrays! These two tricks help keep your data clean and easy to work with. 🚀 🔹 Remove Duplicates from an Array Using Set (fast & clean): const numbers = [1, 2, 2, 3, 4, 4, 5]; const uniqueNumbers = [...new Set(numbers)]; console.log(uniqueNumbers); // [1, 2, 3, 4, 5] --- 🔹 Flatten a Nested Array Using flat(): const nested = [1, [2, [3, 4]], 5]; const flatArray = nested.flat(2); console.log(flatArray); // [1, 2, 3, 4, 5] --- 🔥 These small improvements help write cleaner, more readable code. If you're learning JavaScript, definitely try these out! #JavaScript #Learning #WebDevelopment #CodingJourney #100DaysOfCode
To view or add a comment, sign in
-
🚀 New Video in our DSA in JavaScript Series! In this video, we start a brand-new chapter — Stack 📚 — one of the most important data structures in DSA! 💻 You’ll learn what a Stack is, how the LIFO (Last In, First Out) principle works, and where stacks are actually used in the real world 🔁 We’ll go through simple examples like Undo/Redo, Browser History, and Function Call Stack — all in a short and beginner-friendly way 👇 💡 You’ll clearly understand: ✅ What is a Stack in DSA ✅ LIFO Principle (Last In, First Out) ✅ Real-life examples of Stack ✅ Applications of Stack in programming ✅ Why Stack is so important in DSA 🎥 Watch here → https://lnkd.in/ggzkXXRs 📌 Watch the complete DSA in JavaScript playlist here: https://lnkd.in/g2qrGaSH 📂 Download the PPT for this topic here: https://lnkd.in/gWV94i3s #dsa #dsainjavascript #javascript #stack #datastructures #codingtutorial #dsaforbeginners #jdcodebase #javascriptdsa #stacktutorial
Stack in JavaScript | DSA Explained with Example | JDCodebase
https://www.youtube.com/
To view or add a comment, sign in
-
🚀 Starting My JavaScript Revision Journey! Body: Yesterday, I went back to the basics of JavaScript to strengthen my foundation. Here’s what I revised: 🟡 Variables — var, let, and const and when to use them 🟡 Scope — Global variables (accessible everywhere) — Local variables (accessible within a function/block) 🟡 Data Types — Primitive: string, number, boolean, null, undefined, symbol, bigint — Non-Primitive: objects, arrays, functions It’s amazing how revisiting fundamentals clears a lot of confusion! What JavaScript concept took you time to understand when starting out? #JavaScript #BackendDevelopment #LearningJourney #Coding
To view or add a comment, sign in
-
🚀 New Video in our DSA in JavaScript Series! In this video, we continue our Stack chapter 📚 — and solve two very popular stack problems in JavaScript 💻 You’ll learn step-by-step how to: ✅ Reverse a String using Stack ✅ Check for Balanced Parentheses (Brackets) Both are beginner-friendly but super important problems to understand how LIFO (Last In, First Out) works in real coding examples ⚙️ We’ll go through the full logic + code explanation and dry run everything inside VS Code 👇 💡 You’ll clearly understand: How Stack helps in Reversal & Matching problems Real use of push() and pop() How LIFO principle solves both questions Step-by-step dry run examples 🎥 Watch here → https://lnkd.in/etXYgrSp 📌 Watch the complete DSA in JavaScript playlist here: https://lnkd.in/g2qrGaSH 📂 Download the PPT for this topic here: https://lnkd.in/eejEhC3j #dsa #dsainjavascript #javascript #stack #datastructures #codingtutorial #dsaforbeginners #jdcodebase #javascriptdsa #stacktutorial
Stack Problems Part-1 in JavaScript | DSA Explained with Example | JDCodebase
https://www.youtube.com/
To view or add a comment, sign in
-
🚀 Day 6 of My 30 Days of JavaScript Challenge 🧩 Problem: Filter Elements from Array (LeetCode #2634) Given an integer array arr and a filtering function fn, return a new array filteredArr that only includes elements where fn(arr[i], i) returns a truthy value. Solve this without using the built-in Array.filter() method. 💻 Language: JavaScript ❓ Question: https://lnkd.in/eSGpgXcM 💡 Solution: https://lnkd.in/ekA6y-u3 🧠 Concepts Used: Higher-order functions and callbacks Conditional checks for truthy/falsy values Understanding Boolean(value) behavior in JavaScript 📚 Takeaway: Rebuilding filter() from scratch deepens understanding of conditional logic, iteration, and truthy/falsy evaluation — all essential for functional programming in JavaScript. #Day6 #JavaScript #30DaysOfCode #LeetCode #CodingChallenge #WebDevelopment #FrontendDevelopment #100DaysOfCode
To view or add a comment, sign in
-
Javascript Logic Challenge #2 — Reverse a Number Goal: Write a JavaScript program to reverse a number. Example: Input: 1234 Output: 4321 Step-by-Step : 1. Pick the last digit (using % 10) 2. Add it to a new number (reverse) 3. Remove the last digit (using Math.floor(num / 10)) 4. Keep doing it until no digits are left Every small code teaches me something new . guess the output #JavaScript #LogicBuilding #WebDevelopment #CodingJourney #FrontendDeveloper #LearningEveryday
To view or add a comment, sign in
-
-
Building a Basic Calculator in JavaScript 🔹 Ever wondered how to evaluate a math expression like '1 + (4 + 5 + 2) - 3' in JavaScript without using eval()? Here's a clean way to do it using stacks. Key Concepts: Stack for previous results and signs: Keeps track of nested parentheses. Sign management: Helps handle + and - correctly. Iterative parsing: Converts string digits into numbers. Avoids the dangers of eval(). Can handle nested parentheses. Shows how stack-based algorithms can solve real-world problems elegantly.
To view or add a comment, sign in
-
-
Day 69 of #100daysCode Ever wondered how JavaScript thinks? 🤔 It’s all about Variables, Data Types, and Operators! These 3 concepts might seem simple, but they’re the secret to how JS handles everything — from text to numbers to logic. Swipe through my carousel to learn the basics in a fun, visual way 🎨✨ #JavaScript #CodingJourney #FrontendDevelopment #LearnToCode #WomenInTech
To view or add a comment, sign in
-
“Daily Temperatures” Using Stack in JavaScript ♨️ 👉 Day 19 / Day 93 👈 Description: 👉 The goal is to find out how many days you have to wait until a warmer temperature. ✅ Approach: 👉 Traverse the array from right to left. 👉Maintain a stack to store indices of temperatures in decreasing order. 👉 For each day, pop all smaller or equal temperatures. 👉 The difference between the current index and top of stack gives the number of days to wait. This method ensures O(n) time complexity instead of a brute-force O(n²). #JavaScript #CodingChallenge #DSA #InterviewPreparation #FrontendDeveloper #ProblemSolving #100DaysOfCode #TechLearning #LeetCode #Algorithms
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development