Introductary Week In JS

Hi everyone, welcome to the first article about my experiences, lessons, projects, and challenges from this week. This blog is divided into six sections, so you can focus on the parts that interest you:

  1. Things learnt this week.

  2. Steps I followed.

  3. Problems encountered.

  4. How I solved those problems.

  5. Projects made this week.

  6. Resources used.

THINGS LEARNT THIS WEEK:-

I began with an introduction to JavaScript, covering topics like how it got its name, the difference between Java and JavaScript, and the distinction between compiled and interpreted languages. After that, I learned the basics of the language, including:

  1. Comments

  2. Declarations

  3. Scope of Variables

  4. Different String Operations

  5. Math Functions

  6. Arrays and Operations on Arrays

  7. Conditional Statements

  8. Loops

  9. Functions

STEPS I FOLLOWED:-

I started by watching tutorials on Udemy and YouTube, then switched to MDN documentation because it's important to read the material as well. I would watch tutorials, code alongside them, and take notes while learning from the MDN documentation. I found that instead of studying everything at once, taking breaks when I felt tired helped boost my learning. Sometimes, I sped up the tutorials because, as an experienced C++ programmer, it was easier to understand basics. This is also why I learned so much in the first week.

PROBLEMS ENCOUNTERED:-

  1. Reading Documentation: Reading documentation was tiring, especially at first. I still struggle with it due to low retention and the boring content, which makes it even harder.

  2. Getting Confused with Syntax: Switching from one language to another can be confusing, and since JavaScript is case-sensitive, I initially made errors.

  3. IDE*:* Since the tutorial used Chrome Developer Tools, it was a bit challenging to get used to using the console and snippets.

  4. Can I Put These Codes on GitHub?*:* This seemed like a simple question, but I was quite confused about whether to upload the codes to GitHub.

  5. Analyzing Logical Errors*:* It's frustrating when the code compiles successfully, but you still don't get the desired output.

HOW I SOLVED THOSE PROBLEMS:-

  1. Reading Documentation: I set my phone aside and started by reading for 15 minutes, gradually increasing the time spent in each session.

  2. Getting Confused with Syntax: Practicing repeatedly helped me become comfortable with the syntax and confident in JavaScript.

  3. IDE: Once I saved some files on my drive, I gradually became comfortable with using snippets and the console.

  4. Can I Put These Codes on GitHub? I searched online and on YouTube and found the answer: Yes, you can.

  5. Analyzing Logical Errors: I got stuck on an array question, but dry running the cases in my head helped me solve them.

PROJECTS MADE THIS WEEK:-

You can find all the source codes on my GitHub profile, "JanwinAditya."

  1. Teacher Feedback Tweet: Similar to old-school Twitter, it takes your review and shortens it to 140 characters.

  2. Commitment Predictor: See if you'll stay committed this year. It calculates your chances and gives you the result.

  3. Leap-Year Calculator: It checks if a given year is a leap year using nested if-else statements.

  4. Fibonacci Series Calculator: It shows the Fibonacci series up to the nth term entered by the user.

RESOURCES USED:-

  1. UDEMY

  2. YOUTUBE

  3. MDN JAVASCRIPT DOCUMENTATION

  4. STACK OVERFLOW