Learning JavaScript Functions: Reusable Code Blocks

✨ Day [01] of My Learning Journey ✨ Today, I explored one of the most fundamental yet powerful concepts in JavaScript — Functions 💡 Here’s what I learned: 👉 A function is basically a reusable block of code that performs a specific task. 👉 It helps make code cleaner, modular, and easier to debug. 👉 You can create a function once and call it multiple times — super efficient! For example 👇 function greet(name) { console.log("Hello, " + name + "!"); } greet("Nikki"); // Output: Hello, Nikki! Then I also discovered arrow functions, which are a shorter and more modern way to write functions: const greet = name => console.log("Hello, " + name + "!"); I found this really interesting because arrow functions make the code more concise and look cleaner. 🚀 Small step today — but one more building block towards mastering JavaScript 💻 #90DaysOfCode #javascript #learning #webdevelopment #frontend #functions #growthmindset

Keep going Nikki. I'm rooting for you.

Looking forward to learn more technical stuff like this. Keep it up Nikki ✨

See more comments

To view or add a comment, sign in

Explore content categories