How to set up a javascript programming workspace

A laptop, a browser tab, and one editor window. Everything else in a beginner’s setup is optional, and a good deal of it is somewhere to hide from writing code. The workspace below is arranged around a single requirement: getting from an idea to a running page in under a minute.

Arrange the desk before the software

Screen at eye level, keyboard close enough that your elbows stay near your sides, and light that does not reflect off the display. Working on a sofa with a laptop on your knees is survivable for a week and miserable for a month; a bookshelf and a cushion will fix the height for nothing. Keep water within reach and your phone out of it, preferably face down and on the other side of the room.

Four editor settings worth changing now

Your editor’s defaults were chosen for someone else’s eyes. Adjust these and leave the rest alone until something hurts.

  • Font size large enough to read without leaning in — most beginners set it too small.
  • Word wrap on, so long lines do not disappear off the side.
  • Format on save, if your editor offers it, so indentation is never your problem.
  • A light or dark theme with enough contrast to survive an evening; the default is usually fine.

Resist installing ten extensions in the first session. Each one is another thing that can behave unexpectedly, and you cannot yet tell an extension’s fault from yours.

Keep one browser honest

Pick a single browser for development and open the developer tools as a habit, not an emergency. Keep a second browser installed for one purpose only: checking that the page is not relying on something specific to your main one. The console, the elements panel and the network tab are the three places you will spend most of your debugging time, so put them on a keyboard shortcut you can reach without looking.

One useful ritual: hard-reload the page whenever a change does not appear. Cached files cause more confusion in the first month than actual bugs do.

Folders, names and a place for scraps

Keep every project in one parent folder, one folder per project, and names with no spaces and no capital letters. Name files for what they hold rather than for the version — script.js, not script-new-final2.js — and let version control handle the history once you start using it. A separate folder called experiments gives every throwaway test a home, which keeps your real project clean and your console habits intact.

What to leave uninstalled

Skip the bundler, the framework scaffolder, the linter configuration and the testing setup until a project genuinely needs one. They add config files, error messages and concepts, and at this stage a plain HTML file with a script tag runs the same ideas with none of that overhead. Add tools when their absence is the thing slowing you down, not because a setup guide listed them.

A desk you can sit at, an editor you can read and a browser you can inspect: that is a working setup. The best test is not how it looks but whether you can start a new experiment in the time it takes to open a folder.