🚀 JavaScript Basics – var vs let vs const While revising core concepts, I refreshed my understanding of variable declarations in JavaScript. Here’s a quick breakdown: 🔹 var • Function scoped • Can be redeclared • Can be updated 🔹 let • Block scoped • Cannot be redeclared in the same scope • Can be updated 🔹 const • Block scoped • Cannot be redeclared • Cannot be reassigned 💡 Best Practice: Use const by default. Use let when the value needs to change. Avoid using var in modern JavaScript. Strong fundamentals = Strong development skills. #javascript #webdevelopment #frontenddeveloper #coding #learninginpublic #100DaysOfCode
JavaScript Variable Declarations: var vs let vs const
More Relevant Posts
-
🚀 JavaScript Fundamentals Series — Part 8 Objects are one of the most important concepts in JavaScript. Almost everything in JavaScript is built around objects. This guide covers: • What objects really are • Properties and methods • How JavaScript structures data • Why objects are everywhere in JS If you want to truly understand JavaScript, you must understand objects. Full guide 👇 https://lnkd.in/dGHh7weZ #javascript #coding #webdev
To view or add a comment, sign in
-
Day 5 of “Js in bits series – (Datatypes - String)” Some interesting things we explore: 🔹 What exactly a JavaScript string is 🔹 Different ways to create strings (' ', " ", and template literals ` `) 🔹 Why strings are immutable in JavaScript 🔹 Practical examples of working with strings 👉 https://lnkd.in/gZJecfRG #javascript #webdevelopment #frontend #learning #softwareengineering #coding
To view or add a comment, sign in
-
-
Async/Await helps us handle asynchronous tasks in JavaScript in a simple and clean way. It makes the code easier to read and understand compared to other methods. It is commonly used when working with APIs and data fetching in web applications. Learning this concept helped me understand how JavaScript manages tasks that take time to complete. #JavaScript #webdevelopment #Coding
To view or add a comment, sign in
-
-
🚀 30 Days of JavaScript – Day 5 Continuing my journey to improve my JavaScript logical thinking by building small programs every day. 💡 Today’s Program: Reverse a String This program takes a word from the user and reverses it using a loop. 🧠 Concepts Used: • for loop • string indexing • basic string manipulation Example: Input → JavaScript Output → tpircSavaJ 🎥 Demo below 👇 Full source code in the First comment. #JavaScript #CodingJourney #ProblemSolving #WebDevelopment #Learning
To view or add a comment, sign in
-
Practiced using map() in JavaScript today. Instead of manually looping through an array, map() creates a new transformed array. Cleaner logic. Better readability. Small improvements like this make code more maintainable. #JavaScript #ArrayMethods #WebDevelopment #FrontendDevelopment #CleanCode #LearningInPublic #CodingJourney #DeveloperLife #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 Day 6 of #30DaysOfJavaScript Today I built a Random Password Generator using JavaScript. This project generates a secure random password and also allows users to copy it easily. 🔹 Features ✔ Generate random strong password ✔ Copy password to clipboard ✔ Clean and simple UI 🛠 Tech Used HTML CSS JavaScript 🔗 Live Demo: https://lnkd.in/gvMGMfgr 🔗 GitHub Repository: https://lnkd.in/gxigBsYp I’m improving my JavaScript skills by building projects every day. More projects coming soon 🚀 #javascript #webdevelopment #frontenddevelopment #coding #100daysofcode
To view or add a comment, sign in
-
Day 7 of “Js in bits series – (Datatypes - Null)” Key ideas covered in the article: 🔹 What null really means in JavaScript 🔹 Why developers explicitly assign null to variables 🔹 The difference between null and undefined 🔹 Why typeof null returns "object" (one of JavaScript’s historical quirks) 👉 https://lnkd.in/gTA8tarr #javascript #webdevelopment #frontend #learning #softwareengineering #coding
To view or add a comment, sign in
-
-
Strengthening my JavaScript fundamentals one concept at a time! Today I revisited essential string functionalities in JavaScript — simple methods, but extremely powerful in real-world development. From transforming text to searching, slicing, and splitting strings, these functions are used almost everywhere in frontend applications. ✨ Quick reminder: Clean code starts with strong basics. Consistent practice with fundamentals like string manipulation helps write more efficient logic, optimize performance, and handle data better in real projects. What’s one JavaScript method you use almost daily? 👇 #JavaScript #WebDevelopment #FrontendDeveloper #CodingJourney #LearnToCode #Programming #ReactDeveloper
To view or add a comment, sign in
-
-
Day 10 – JavaScript Practice Today I worked on: ✓Taking numeric user input using HTML ✓Using JavaScript functions ✓Applying mathematical formula in JS ✓DOM manipulation with getElementById() I built a Fahrenheit to Celsius Converter where: ---> User enters temperature in Fahrenheit ---> Program converts it into Celsius using JavaScript ---> Result is displayed instantly with 2 decimal precision #JavaScript #WebDevelopment #Day10 #Practice #LearningJourney #DOM #Coding
To view or add a comment, sign in
-
🚀 Day 939 of #1000DaysOfCode ✨ Object Methods in JavaScript Objects are one of the most fundamental parts of JavaScript, and knowing how to work with them efficiently can make your code much more powerful and readable. In today’s post, I’ve covered important object methods in JavaScript that every developer should know. Understanding these methods helps you manipulate data structures more effectively and write cleaner, more efficient code. If you work with JavaScript regularly, mastering object methods is definitely a must. 👇 Which JavaScript object method do you use the most in your projects? #Day939 #learningoftheday #1000daysofcodingchallenge #FrontendDevelopment #WebDevelopment #JavaScript #React #Next #CodingCommunity
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
Follow for more ! 😁