Tired of ads? Enjoy an ad-free experience by signing up.
Zell Liew · · 8 min read

How to solve your Javascript woes for beginners

Photo credit: Kevin/Unsplash.

“I don’t get Javascript.”

“I can’t make components from scratch.”

“My mind goes blank when I stare at a blank Javascript file.”

“I can’t do it because I don’t know how to think like a programmer.”

Sounds familiar? You’re not alone, my friend. Many people who try to pick up Javascript as their first programming language face the same problem. Heck, even developers who are already coding in another language face the same issue with Javascript, too. There are so many with this problem, that I’ve even created a course on the matter.

But no more. Let today be the day when you learn to think like a programmer.

You can already think like one

Have you tried simple Javascript exercises on places like freeCodeCamp, Codeacademy, or Codewars? If you have, you already know how to think like a programmer.

The real reason your mind goes blank when you face your Javascript file is likely because of coder’s block. You’re scared to write something that doesn’t work. You’re scared to face the errors. You don’t know how to begin.

Follow these four steps to overcome coder’s block:

  • Break down the problem into smaller problems
  • Find solutions to your smaller problems
  • Assemble the solutions in a coherent manner
  • Refactor and improve

Let’s take a closer look at each of these steps.

Step 1: Break down the problem into smaller problems

How do you put an elephant in a fridge? Here’s what most people would answer:

  • Open the fridge
  • Put the elephant in
  • Close the fridge

Step 2: Find solutions to your smaller problems

Step 3: Assemble the solutions in a coherent manner

A real example

that contains a list of links:

Wrapping up

Stay ahead in Asia’s tech landscape

You've reached your 2 free content limit for the month. Sign up for free to read the full story.

🏄 For casual readers / 👶 Free

Basic

US$0

Free forever

Get instant access to this article and more every month

0 premium content

Unlimited news briefs

5

5 articles

Ad-free reading experience

Just US$0 per day

⌛Sign up in 20s. No payment details needed.

📖 For learners / 👍 Starter

Lite

US$4.92/month

Billed annually at US$59/year

Get instant access to this article and more every month

4

4 premium content

Unlimited news briefs & articles

Ad-free reading experience

Just US$0.17 per day

Cancel anytime

Our subscriber community includes professionals from these companies:

Stay updated on the go with our mobile app.

Get latest insights with smoother, more personalized experience through TIA mobile app.

Community Writer

Zell Liew

Zell is a freelance designer and developer from Singapore. He researches and writes about frontend development on his blog. When he's not coding, he's busy teaching and hence doesn't really have a life :)