DEV Community

Jacob Stern
Jacob Stern

Posted on

Day 55 / 100 Days of Code: Exploring JavaScript Control Flow

Sat, Aug 24, 2024

Hey everyone! đź‘‹

Having studied Computer Science in college, I’m familiar with control flow structures like if-else and switch-case. Now, diving into JavaScript, which offers even more complex branching and data types, has been a fascinating journey so far!

Lately, I’ve been experimenting with JavaScript objects and exploring some of its interesting methods. Codecademy’s mini-projects have been a great way to practice these concepts. I’ve noticed that as long as my function declarations and return values meet requirements, I can move forward. This has allowed me to focus on learning new concepts while appreciating the core Codecademy lessons.

Sometimes, classic switch-case or if-else statements are the best (or only) solutions; e.g., in one project, I tried using a JavaScript map object but found it wasn’t ideal for the task, so I reverted to if-else. However, I’m excited to make friends with more of JavaScript’s built-in data structures.

Having background in C/C++ has definitely made the transition to JavaScript smoother, as there are many familiar elements. When I encounter similarities between the two languages, it sparks my curiosity to delve deeper and understand the nuances of JavaScript even more. I’m excited to continue this journey and learn something new every day.

I’d love to hear from other dev bloggers! How do you approach learning new programming languages or concepts?

Any tips or resources you’d recommend? Let’s connect and share our experiences!

Happy coding! 🚀

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

đź‘‹ Kindness is contagious

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

Okay