Skip to content
Learn Netverks

Lesson

Step 5/36 14% through track

playground-workflow

Playground workflow

Last reviewed May 28, 2026 Content v20260528
Track mode
nodejs_server
Means
Node sandbox
Reading
~2 min
Level
beginner

This lesson

This lesson teaches Playground workflow: the syntax, APIs, and habits you need before advancing in Node.js.

Teams ship Playground workflow on every Node.js codebase—skipping it leaves gaps in debugging and code reviews.

You will apply Playground workflow in contexts like: REST/GraphQL APIs, BFF layers, CLIs, webhooks, and real-time services (with WebSockets).

Run JavaScript on the Node runner when configured—never mix arbitrary shell commands in lessons. Also use ESM import syntax in the editor—the runner executes main.mjs.

At the start of the track—complete before lessons that assume you understand the server playground.

Build reliable habits in the Node playground—the same loop transfers to local projects with node main.mjs, nodemon, or your IDE debugger.

Recommended workflow

  1. Read the concept section before editing code.
  2. Click Run to execute ESM on the dev runner.
  3. Use console.log for values; use console.error for errors (stderr).
  4. Change one idea at a time—one import, one await, one route handler.
  5. Read stack traces from bottom to top to find your file and line.
  6. Reset the editor if you drift far from the lesson goal.

What the runner can and cannot do

  • Can — ESM imports, built-in node: modules, async/await, short-lived http.createServer demos
  • Conceptual — Express/Nest apps, npm install, long-running servers, databases
  • Needs local setup — real Express project, MongoDB/PostgreSQL, Docker deploy, WebSockets at scale

Review JavaScript promises if async output order confuses you—it is the same language, new runtime APIs here.

Self-check

  1. Why does this track use ESM in the editor?
  2. When should you use console.error instead of console.log?

Challenge

First run

  1. Click Run with the default code.
  2. Confirm process.version prints in the output.
  3. Add a second console.log with a custom message.

Done when: the terminal shows the Node version and your custom message.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs on the configured server runner (dev: npm run runner with LEARNING_RUNNER_ENABLED=true). Output appears below the editor.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • ESM vs require here?
  • Runner output clear?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump