๐ ๐ฎ๐๐๐ฒ๐ฟ๐ถ๐ป๐ด ๐๐ฎ๐๐ฎ๐ฆ๐ฐ๐ฟ๐ถ๐ฝ๐ ๐๐๐ป๐ฐ๐๐ถ๐ผ๐ป๐
Day 15 of my MERN stack journey. I studied functions today.
I stopped copying and pasting code. I learned to package logic into reusable blocks.
Here is what I learned:
- Functions are code blocks. They run when you call them.
- Parameters are placeholders in the declaration.
- Arguments are the real values you pass in.
- The return keyword sends a value back. It stops the function.
I practiced with these projects:
- Sum and product functions for math.
- A vowel counter. It scans text and counts vowels.
Next, I will study arrow functions and array callback methods like .forEach().
Do you use traditional functions or arrow functions in your work?
Source: https://dev.to/ali_hamza_589ec7b3eb6688d/javascript-apnacollege-webdev-beginners-3hjg