Day 38: JavaScript Fundamentals and TypeScript Introduction

🚀 Day 38 of #100DaysOfWebDevelopment Challenge Continuing my JavaScript journey, today I explored some essential fundamentals that strengthen the base of writing clean, readable, and efficient code. 🔹 Identifiers and Naming Conventions I learned the rules for creating identifiers in JavaScript — how variable and function names must start with a letter, underscore _, or dollar sign $, and cannot contain spaces or reserved keywords. I also explored different naming conventions that make code more readable: camelCase → used for variables and functions (e.g., userName) snake_case → often used in databases (e.g., user_name) PascalCase → generally used for class names (e.g., UserProfile) 🔹 Booleans in JavaScript I studied the boolean data type, which represents two values: true or false. Booleans are especially important in decision-making and control flow statements. 🔹 TypeScript Introduction I also got a brief introduction to TypeScript, a superset of JavaScript that adds static typing and helps developers catch errors during development rather than at runtime — improving reliability and scalability of large projects. 🔹 Strings in JavaScript Today I also explored strings, one of the most common data types used to represent text. I learned about string indices, which help access characters at specific positions, and about concatenation, which combines multiple strings using the + operator or template literals. 🔹 Null and Undefined Finally, I understood the difference between null and undefined — null is an intentional absence of value. undefined means a variable has been declared but not assigned any value. 💡 Insight: Mastering these foundational concepts ensures better code readability, structure, and debugging efficiency. It’s the small details that make a big difference in writing professional JavaScript code. #100DaysOfCode #WebDevelopment #JavaScript #FrontendDevelopment #LearningInPublic #CodingJourney

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories