Starting my JavaScript learning journey — sharing what I learn every day. 🚀 📅 JavaScript Learning Journey — Day 5 Today I learned about Data Types in JavaScript — one of the core concepts every developer must understand. Data types define what kind of value a variable holds. 🔎 Main Data Types in JavaScript 🔹 Primitive Data Types • String → Text let name = "Redoan"; • Number → Numeric value let age = 20; • Boolean → true / false let isStudent = true; • Undefined → value not assigned let x; • Null → intentionally empty let y = null; --- 🔸 Non-Primitive Data Type • Object → collection of data let user = { name: "Redoan", age: 20 }; --- 🧠 Check Data Type using "typeof" console.log(typeof "Hello"); // string console.log(typeof 100); // number console.log(typeof true); // boolean ⚠️ Interesting Fact 😲 console.log(typeof null); // object (this is a known bug in JavaScript) --- 📌 Key Takeaways (Day 5) • Data types define the type of value • Primitive vs Non-Primitive • "typeof" is useful to check types • JavaScript is dynamically typed This is Day 5 of my JavaScript learning series. Next, I’ll explore Operators in JavaScript. #JavaScript #WebDevelopment #FrontendDeveloper #LearningInPublic #100DaysOfCode #programinghero
JavaScript Learning Journey: Day 5 - Data Types
More Relevant Posts
-
Starting my JavaScript learning journey — sharing what I learn every day. 🚀 📅 JavaScript Learning Journey — Day 6 Today I explored Operators in JavaScript — essential for performing operations on data. Operators help us calculate, compare, and make decisions in our code. --- 🔎 Types of Operators in JavaScript ➕ 1. Arithmetic Operators Used for basic math operations: let a = 10; let b = 5; console.log(a + b); // 15 console.log(a - b); // 5 console.log(a * b); // 50 console.log(a / b); // 2 --- ⚖️ 2. Comparison Operators Used to compare values: console.log(10 == "10"); // true console.log(10 === "10"); // false console.log(5 > 3); // true 💡 "==" vs "===" (Important) • "==" → only value compare করে • "===" → value + type compare করে (recommended ✅) --- 🔗 3. Logical Operators Used for decision making: console.log(true && false); // false console.log(true || false); // true console.log(!true); // false --- 📌 Key Takeaways (Day 6) • Operators are used to perform operations • Arithmetic → calculations • Comparison → checking values • Logical → decision making • Always prefer "===" over "==" --- This is Day 6 of my JavaScript learning series. Next, I’ll explore Conditions (if, else, switch). #JavaScript #WebDevelopment #FrontendDeveloper #LearningInPublic #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 Today’s Learning Update (JavaScript Fundamentals) Time: 3:00 PM – 4:00 PM Topic: Variables, Data Types, Operators, Conditional Statements, Ternary Operator, Unary Operator, Loops, Functions 🧠 What I focused on today I studied and revised the core JavaScript fundamentals with a clear approach: 👉 What is it? 👉 Why is it used? 👉 How does it work? 🟢 Variables What: Stores data in memory Why: To reuse and manage data How: Assigns a name to a value stored in memory 🟡 Data Types What: Types of data (String, Number, Boolean, etc.) Why: To define correct form of data How: JS identifies or assigns type automatically 🟠 Operators What: Symbols like +, -, == used for operations Why: For calculations and comparisons How: Takes values → performs operation → returns result 🔵 Conditional Statements What: Decision-making in code (if-else) Why: To control program flow How: Condition checked → true/false → block executes 🟣 Ternary Operator What: Short form of if-else Why: Write clean and short code How: condition ? value1 : value2 🟣 Unary Operator What: Works on single value (++, --, typeof) Why: For increment, decrement, and type checking How: Directly modifies or evaluates a single value 🟤 Loops What: Repeats code multiple times Why: To avoid repetition and automate tasks How: Runs until condition becomes false 🟢 Functions What: Reusable block of code Why: To avoid repetition and make code clean How: Define once → use multiple times 💡 Key Learning These are not just topics — they are the foundation of JavaScript. 👉 Without understanding these: You cannot solve coding problems You cannot learn DSA You cannot build real projects This is the base of programming, and I am focusing on building it strong before moving to advanced DSA and development. #JavaScript #WebDevelopment #FrontendDevelopment #LearningJourney #Consistency #ProgrammingBasics #DeveloperMindset
To view or add a comment, sign in
-
🚀 Continuing My Django Learning Journey As I move forward in learning Django, I’m focusing on strengthening the core web concepts that power every web application. Today I explored how the web identifies different types of data and how servers communicate the result of a request. 📚 Concepts I covered: 🔹 MIME Types (Multipurpose Internet Mail Extensions) MIME types help browsers understand the type of content being sent by the server. Examples: • text/html – HTML pages • image/png – Images • application/json – JSON data 🔹 HTTP Status Codes Status codes tell us whether a request was successful or if an error occurred. Common ones include: • 200 OK – Request successful • 301 / 302 – Redirection • 400 Bad Request – Client-side error • 401 Unauthorized – Authentication required • 403 Forbidden – Access denied • 404 Not Found – Resource not found • 500 Internal Server Error – Server-side error 💡 Key Insight Whenever we open a webpage, the browser not only receives the content but also metadata about the response, which helps it decide how to handle and display the information. Understanding these details helps in debugging web applications and building better backend systems with Django. Step by step, building stronger foundations for web development. #Django #Python #BackendDevelopment #WebDevelopment #LearningJourney #DeveloperGrowth Dhee Coding Lab Prodhee Technologies
To view or add a comment, sign in
-
-
Day 2 of My JavaScript Learning Journey Today I explored some fundamental concepts that helped me understand how decision-making works in JavaScript and how code execution actually flows. Understanding if vs if-else - "if" always checks its condition independently. - Multiple "if" statements will all run if their conditions are true. - "else" does NOT take a condition — it only runs when the previous "if" is false. Example insight: If we write multiple "if" statements like this: let marks = 85; if(marks > 90){ console.log("O"); } if(marks > 80){ console.log("A"); } if(marks > 60){ console.log("C"); } else { console.log("FAIL"); } Output: A C Why? Because each "if" runs separately and checks its own condition. --- Important Learning If you want ONLY one condition to run, use: if...else if...else Otherwise, multiple outputs will come. --- Semicolon in JavaScript - Semicolon (";") is optional in many cases. - JavaScript automatically inserts it (ASI – Automatic Semicolon Insertion). But: - It becomes important when writing multiple statements in one line. Example: console.log("2"); console.log("nifty"); #JavaScript #WebDevelopment #CodingJourney #LearningInPublic #Day2
To view or add a comment, sign in
-
Starting my JavaScript learning journey — sharing what I learn every day. 🚀 📅 JavaScript Learning Journey — Day 8 Today I learned about Loops in JavaScript — a powerful way to repeat tasks efficiently. Loops help us execute the same block of code multiple times without writing it again and again. --- 🔎 1. for Loop (Most Used) for (let i = 1; i <= 5; i++) { console.log(i); } 👉 Output: 1 2 3 4 5 --- 🔎 2. while Loop let i = 1; while (i <= 5) { console.log(i); i++; } --- 🔎 3. do...while Loop let i = 1; do { console.log(i); i++; } while (i <= 5); --- 🧠 When to use what? • "for" → when you know how many times to loop • "while" → when condition-based loop • "do...while" → runs at least once --- 📌 Key Takeaways (Day 8) • Loops reduce repetitive code • "for" loop is most commonly used • Always be careful with infinite loops ⚠️ --- This is Day 8 of my JavaScript learning series. Next, I’ll explore Functions in JavaScript. #JavaScript #WebDevelopment #FrontendDeveloper #LearningInPublic #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 Day 14 of My JavaScript Learning Journey Today I learned about JavaScript Objects — Access, Add, Update & Delete properties. 📌 Key concepts I explored: 🔹 What is an Object? • A collection of key-value pairs • Used to store structured data Example: let user = { name: "Sanjay", age: 21 }; 🔹 Accessing Object Data • Dot Notation → user.name • Bracket Notation → user["age"] 💡 Bracket notation is useful when keys are dynamic or contain special characters. 🔹 Modifying Objects • Add → user.city = "Bangalore" • Update → user.age = 22 🔹 Deleting Properties • Use delete keyword Example: delete user.city; 🔹 Important Insight • Objects are mutable, meaning they can be changed after creation 💡 Understanding objects is essential because they are widely used to represent real-world data in applications. Step by step, I’m improving my JavaScript fundamentals and practical coding skills. 💻✨ #JavaScript #WebDevelopment #FrontendDevelopment #CodingJourney #LearningInPublic #100DaysOfCode #DeveloperJourney #ProgrammingBasics
To view or add a comment, sign in
-
-
Starting my JavaScript learning journey — sharing what I learn every day. 🚀 📅 JavaScript Learning Journey — Day 7 Today I learned about Conditions in JavaScript — how to make decisions in code. Conditions allow us to run different code based on different situations. --- 🔎 1. if Statement let age = 18; if (age >= 18) { console.log("You are an adult"); } --- 🔎 2. if...else let age = 16; if (age >= 18) { console.log("Adult"); } else { console.log("Not adult"); } --- 🔎 3. else if let marks = 75; if (marks >= 80) { console.log("A+"); } else if (marks >= 70) { console.log("A"); } else { console.log("B"); } --- 🔎 4. switch Statement let day = 2; switch(day) { case 1: console.log("Sunday"); break; case 2: console.log("Monday"); break; default: console.log("Invalid day"); } --- 📌 Key Takeaways (Day 7) • Conditions help make decisions • "if", "else", "else if" are most commonly used • "switch" is useful for multiple conditions --- This is Day 7 of my JavaScript learning series. Next, I’ll explore Loops in JavaScript. #JavaScript #WebDevelopment #FrontendDeveloper #LearningInPublic #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 Day 13 of My JavaScript Learning Journey Today I learned about Looping Through Arrays in JavaScript and different ways to iterate over data efficiently. 📌 Key concepts I explored: 🔹 Manual Iteration • for...in → Iterates over indexes • for...of → Iterates over values directly 💡 Best Practice: Avoid using for...in for arrays. Prefer for...of for better readability and reliability. 🔹 Functional Iteration • forEach() → Executes a function for each element • Clean and modern way to write iteration logic Example: arr.forEach((value, index) => { console.log(value, index); }); 🔹 Quick Comparison • for...in → Returns index • for...of → Returns value • forEach() → Uses function (modern approach) 💡 Understanding iteration helps in writing clean, efficient, and readable code, especially when working with large datasets. Step by step, I’m improving my JavaScript fundamentals and coding logic. 💻✨ #JavaScript #WebDevelopment #FrontendDevelopment #CodingJourney #LearningInPublic #DeveloperJourney #ProgrammingBasics
To view or add a comment, sign in
-
-
[19th Apr] Today's All Latest 20+ Free Courses with Certificates! 👇👇👇 1. 📌 JavaScript Modules & ImportExport – Practice Questions 2026 🔗 Enroll: https://lnkd.in/gkmtfrbz 2. 📌 JavaScript Execution Context – Practice Questions 2026 🔗 Enroll: https://lnkd.in/gR-V8RqK 3. 📌 JavaScript Fetch API & AJAX – Practice Questions 2026 🔗 Enroll: https://lnkd.in/gvHPDhfn 4. 📌 JavaScript Objects & Prototypes – Practice Questions 2026 🔗 Enroll: https://lnkd.in/g4sVcejM 5. 📌 JavaScript Frameworks Overview – Practice Questions 2026 🔗 Enroll: https://lnkd.in/gsfgctSe 6. 📌 JavaScript Functional Programming – Practice Questions 2026 🔗 Enroll: https://lnkd.in/gENwdAm9 7. 📌 JavaScript Node.js Fundamentals – Practice Questions 2026 🔗 Enroll: https://lnkd.in/gNKh-wDn 8. 📌 JavaScript Functions – Practice Questions 2026 🔗 Enroll: https://lnkd.in/gcv_7bxp 9. 📌 Unleash your Creativity with Stable Diffusion AI 🔗 Enroll: https://lnkd.in/dGAMw2hq 10. 📌 Nmap Crash Course For Beginners 🔗 Enroll: https://lnkd.in/d9xrNEjN 11. 📌 Understanding Data Quality and Reference Data Management 🔗 Enroll: https://lnkd.in/d6JWXcXn 12. 📌 Learn programming with Python 🔗 Enroll: https://lnkd.in/dCNJMzNq 13. 📌 Marketing Analytics with Python: From Data to Insights 🔗 Enroll: https://lnkd.in/dxgkR2Cy 14. 📌 OpenAI Guide: Prompt Engineering, ChatGPT, Dall-e, etc 🔗 Enroll: https://lnkd.in/dmAT6WSA 15. 📌 Nourishing Immune System: An Intuitive Eating Approach 🔗 Enroll: https://lnkd.in/dhZ2QEPt 16. 📌 Emotion Detection Machine Learning Project with YOLOv7 Model 🔗 Enroll: https://lnkd.in/dcq8N_qf 17. 📌 PHP with MySQL: Build Amazing Streaming Service 🔗 Enroll: https://lnkd.in/gUP_PdDx ━━━━━━━━━━━━━━━━━━ Join Our WhatsApp Channel: 🔗 https://lnkd.in/dfCffZMS 🔗 https://lnkd.in/dfCffZMS ━━━━━━━━━━━━━━━━━━ Do share these courses in your groups too.
To view or add a comment, sign in
-
[19th Apr] Today's All Latest 20+ Free Courses with Certificates! 👇👇👇 1. 📌 JavaScript Modules & ImportExport – Practice Questions 2026 🔗 Enroll: https://lnkd.in/gkmtfrbz 2. 📌 JavaScript Execution Context – Practice Questions 2026 🔗 Enroll: https://lnkd.in/gR-V8RqK 3. 📌 JavaScript Fetch API & AJAX – Practice Questions 2026 🔗 Enroll: https://lnkd.in/gvHPDhfn 4. 📌 JavaScript Objects & Prototypes – Practice Questions 2026 🔗 Enroll: https://lnkd.in/g4sVcejM 5. 📌 JavaScript Frameworks Overview – Practice Questions 2026 🔗 Enroll: https://lnkd.in/gsfgctSe 6. 📌 JavaScript Functional Programming – Practice Questions 2026 🔗 Enroll: https://lnkd.in/gENwdAm9 7. 📌 JavaScript Node.js Fundamentals – Practice Questions 2026 🔗 Enroll: https://lnkd.in/gNKh-wDn 8. 📌 JavaScript Functions – Practice Questions 2026 🔗 Enroll: https://lnkd.in/gcv_7bxp 9. 📌 Unleash your Creativity with Stable Diffusion AI 🔗 Enroll: https://lnkd.in/dGAMw2hq 10. 📌 Nmap Crash Course For Beginners 🔗 Enroll: https://lnkd.in/d9xrNEjN 11. 📌 Understanding Data Quality and Reference Data Management 🔗 Enroll: https://lnkd.in/d6JWXcXn 12. 📌 Learn programming with Python 🔗 Enroll: https://lnkd.in/dCNJMzNq 13. 📌 Marketing Analytics with Python: From Data to Insights 🔗 Enroll: https://lnkd.in/dxgkR2Cy 14. 📌 OpenAI Guide: Prompt Engineering, ChatGPT, Dall-e, etc 🔗 Enroll: https://lnkd.in/dmAT6WSA 15. 📌 Nourishing Immune System: An Intuitive Eating Approach 🔗 Enroll: https://lnkd.in/dhZ2QEPt 16. 📌 Emotion Detection Machine Learning Project with YOLOv7 Model 🔗 Enroll: https://lnkd.in/dcq8N_qf 17. 📌 PHP with MySQL: Build Amazing Streaming Service 🔗 Enroll: https://lnkd.in/gUP_PdDx ━━━━━━━━━━━━━━━━━━ Join Our WhatsApp Channel: 🔗 https://lnkd.in/dfCffZMS 🔗 https://lnkd.in/dfCffZMS ━━━━━━━━━━━━━━━━━━ Do share these courses in your groups too.
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