🚀 Lecture 13. Learned JavaScript essentials — including variables (`var`, `let`, `const`), different data types (string, number, boolean, undefined, null), and various ways to use `console.log()` for debugging and output. Building my foundation step by step. 💻✨ #WebDevelopment #JavaScript #chaiaurcode
JavaScript Fundamentals: Variables & Data Types
More Relevant Posts
-
Wrote another blog on JavaScript Arrays Basics. Title: "Mastering JavaScript Arrays: A Beginner's Guide to Organize Data Like a Pro" Link: https://lnkd.in/gKDpwUJb Hitesh Choudhary Piyush Garg Akash Kadlag Anirudh J. Chai Aur Code #chaicode #cohort #javascript
To view or add a comment, sign in
-
I practiced working with for...of and for...in in JavaScript. I noticed they are a bit different from the traditional for loop. for...of is mainly used for arrays, while for...in is used to iterate over object properties. Using loops makes repetitive tasks much easier and cleaner in code. Learning something new every day. #JavaScript #Loops #ForOf #ForIn #WebDevelopment #LearningJourney
To view or add a comment, sign in
-
🚀 JavaScript Learning Update Today I covered some JavaScript fundamentals: • "console.log()" – used to print messages in the console • Variables – containers used to store data • null vs undefined • Dynamic typing in JavaScript • Variable rules and naming conventions • Difference between var, let, and const • 7 Primitive Data Types in JavaScript • Comments in JavaScript • Arithmetic & Unary Operators Building a strong foundation step by step. 💻 #JavaScript #WebDevelopment #CodingJourney #Learning
To view or add a comment, sign in
-
Practicing JavaScript fundamentals with for…of loops. In this project, I: Printed even and odd numbers from an array Calculated the sum of even and odd numbers Found the total sum of all numbers Determined the highest numbers in even and odd arrays Focused on strengthening logic and DOM manipulation skills. #JavaScript #WebDevelopment #CodingPractice #LearningInPub https://lnkd.in/dbPUv_Ka
To view or add a comment, sign in
-
Key Highlights: Problem: Merging two strings by alternating characters from each. The Logic: * Determined the maxLength between two strings to ensure all characters are visited. Implemented conditional checks (if i < length) to handle cases where one string is longer than the other. Avoided undefined values by only appending characters that actually exist in the index. Tech Stack: JavaScript (ES6+).
To view or add a comment, sign in
-
-
Most developers use JavaScript loops every day — but very few truly understand the difference between for, for…of, and for…in. This week I revisited these fundamentals along with one of JavaScript’s most misunderstood concepts: hoisting — and it completely changes how you reason about code execution. Here’s the simple mental model: 🔹 for loop → when you need full control (index, performance, custom logic) 🔹 for…of → clean value iteration for arrays and iterable data 🔹 for…in → object key traversal (not ideal for arrays) 🔹 Hoisting → JavaScript prepares declarations before execution, which explains many “weird” behaviors with var, let, const, and functions Understanding these concepts is not about syntax — it’s about how the JavaScript engine thinks. When you grasp that JavaScript runs in a compilation phase before execution, topics like scope, closures, TDZ, and async behavior start making real sense. Sometimes going back to fundamentals gives the biggest upgrade in thinking. What JavaScript concept felt simple at first but later turned out to be deep for you? #JavaScript #WebDevelopment #Frontend #Programming #SoftwareEngineering #Coding #NodeJS #React #LearningInPublic https://lnkd.in/g9TRur-S
JavaScript Loops & Hoisting Explained — for, for…of, for…in
https://www.youtube.com/
To view or add a comment, sign in
-
I practiced destructuring in JavaScript, and it’s a very useful feature. Using destructuring, we can easily extract values from arrays and objects. For arrays, we use square brackets []. For objects, we use curly braces {}. In arrays, values are assigned based on their position, and in objects, they are assigned based on property names. Such a clean and efficient way to work with data. #JavaScript #Destructuring #ES6 #WebDevelopment #LearningJourney
To view or add a comment, sign in
-
Day 4 of Learning JavaScript 💻 Today I practiced operators. Examples: • + addition • - subtraction • * multiplication • === strict comparison Operators allow programs to perform calculations and comparisons. Small but essential concepts. #javascript #codingjourney
To view or add a comment, sign in
-
💻 JavaScript Beginner Level Practice – Factorial Program Today I practiced a JavaScript program to calculate the factorial of a number using recursion. function factorial(n){ if(n === 0 || n === 1){ return 1; } return n * factorial(n - 1); } console.log(factorial(5)); 📌 Output: 120 💡 Explanation: Factorial means multiplying all whole numbers from 1 to the given number. Example: 5! = 5 × 4 × 3 × 2 × 1 = 120. #JavaScript #BeginnerLevel #CodingPractice #WebDevelopment #LearningToCode
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