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

How to learn Javascript easier by setting up a better development environment

Have you encountered any of these three problems when learning Javascript?

  • Getting confused with the Javascript syntax
  • Getting errors whenever you write Javascript because of stupid typo mistakes
  • Forgetting what methods are available, so you need to search Google even for something as simple as addEventListener

I’ll show you how to tackle these by setting up a better development environment.

Make syntax easy with a syntax highlighter

A syntax highlighter is a tool that differentiates keywords and types of content through colors.

Here’s an example of a text that’s not highlighted:

Code that’s not highlighted.

Here’s one that is:

Highlighted code is easier to read.

Which is easier to read?

At first, syntax highlighting may throw you off, as you may not be used to the dizzying number of colors. But once you get used to it, syntax highlighting helps you make fewer mistakes.

I know at a glance, for example, that const is a keyword since it’s purple, sayText is a function since it’s blue, and Hello world is a string since it’s green.

So, your first step to learning Javascript is to pick a code editor that supports decent Javascript syntax highlighting. If you’re unsure what to go for, I highly recommend either Sublime Text or Atom.

You can also customize the theme your text editor comes with. There are many popular themes out there, including:

Catch typos with a linter

Remember methods easily with snippets

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 :)