Hello! After spending a month learning HTML and CSS, and completing a course on Coursera, I successfully created a landing page that I’m proud of. I then started diving into JavaScript. Initially, I found it manageable when I completed a rock-paper-scissors project, but now I’m stuck on arrays and loops. The assignments feel extremely difficult, almost impossible, and I’m struggling to understand why. I have prior experience with C#, which led me to believe that JavaScript would be similar and easier. So far, I’ve tackled four assignments; the first three were challenging yet doable. However, I was unable to finish the fourth, which left me frustrated after hours of effort, forcing me to seek out the solution without figuring it out myself. I acknowledge that facing challenges is part of the learning process, and I’m determined to push through. Has anyone else encountered similar difficulties, and do you have any advice to share?
One major reason JavaScript can be challenging is its asynchronous nature. Unlike languages where code execution is more linear, JavaScript often entails dealing with events and promises, which can lead to complex control flow. This can be particularly confusing if you’re used to synchronous programming like C#. Also, JavaScript’s dynamic typing and lack of strict enforcement of data types might lead to unexpected behaviors. It can be helpful to break problems down into smaller components and understand each part of JavaScript before trying to integrate them into larger projects.
hey alex, javascript can def be tricky at first. a lot of its quirks are diff from C# with things like hoisting, closures, and the event loop. best advice i got was to learn by doing. maybe try working on more mini-projects to get comfortable with those arrays and loops. good luck!!