Lesson 42
Creating Functions
Build your own functions!
The function Keyword
Every function starts with the keyword function!
function celebrate() { console.log("🎉 Yay!"); console.log("🎊 Party!"); }
Why use functions?
- Write code once, use many times
- Keep your code organized
- Easy to fix bugs in one place
- Makes code easier to read