DEV Community

Jacob Stern
Jacob Stern

Posted on

1

Day 51 / 100 Days of Code: Exploring the Versatility of JavaScript Functions

Tue, August 20, 2024

While I’d seen JavaScript arrow functions, I was unaware of the many ways to declare functions in JavaScript. These can be very compact, and there are also function expressions, which blend functions with variables. Despite JavaScript’s C/C+±inspired syntax, this feels far more modern.

Tomorrow, I’ll get to practice functions in a Rock, Paper, Scissors game and sleep quality calculator projects. I’m excited to see how these projects help me understand the practical applications of different function types in JavaScript.

There’s still a lot to learn. The various formats in JavaScript are mainly due to evolving language standards. I encountered this somewhat in C++, but JavaScript is under far more active development. Writing more recent JavaScript code will make a big impact on my coding style and grammar.

Fortunately, many of my distractions went away today, but I’m continuing using a Pomodoro timer and regular practice to maintain my pace.

Image description

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay