Stop 02 · Developer Setup & ToolsTopics · 4/6

Reading Documentation

Part of the Web Development Roadmap

In short

Tutorials go out of date and videos skip details, but official documentation is where the real answers live. Developers who can read docs calmly get unstuck faster than anyone.

Documentation is the official explanation of how a language, library or tool works. Reading docs like MDN and the React docs well is one of the most useful habits a developer can build.

The jaadu stands at a busy street corner unfolding a large paper city map, tracing a route with one finger.

Think of it like this

The city map versus asking around

Lost in a new city like Hyderabad, you can stop ten strangers and get ten half-right answers, or open the map and see exactly where every road goes. Docs are the map. They're slower to read at first, but they're accurate, complete and always there.

The big ideas

What you need to know

Know the main sources

MDN Web Docs for HTML, CSS and JavaScript. react.dev for React. nodejs.org and expressjs.com for the backend.

Read in a pattern

Read the one-line summary, then the syntax, then jump to the examples. Read parameters and return values when the example isn't enough.

Check browser support

MDN pages end with a compatibility table. It tells you if a feature works in the browsers your users have.

Run the example

Copy the smallest example, run it, then change one thing. Docs stick once you've played with them.

How it works

Reading an MDN page for Array.prototype.map

  1. 1

    Summary

    First line: map creates a new array by calling a function on every element.

  2. 2

    Syntax

    map(callbackFn). The callback receives element, index and array.

  3. 3

    Return value

    A new array of the same length. The original isn't changed.

  4. 4

    Examples

    Copy one into the Console and try it with your own numbers.

See it in code

Walk through the code

js
1// From the syntax: map(callbackFn), callback gets (element, index, array)2const prices = [100, 250, 400];3 4const withGst = prices.map((price) => price * 1.18);5console.log(withGst);   // [118, 295, 472]6console.log(prices);    // [100, 250, 400] (unchanged)7 8// Using the second parameter the docs mention: index9prices.map((price, index) => index + 1 + ". Rs " + price);

1/3Start from the syntax line in the docs.

Turning a docs page into working code. Notice the original array stays the same, exactly as the docs promise.

Save yourself the pain

Common mistakes

Oops

Reading every word of a docs page from top to bottom.

Do this instead

Skim for the summary, syntax and examples. Dive into the detailed sections only when you need them.

Oops

Using random blog posts from years ago as the final word.

Do this instead

Blogs are fine for ideas, but confirm against the official docs, since APIs change.

Your mission

Learn one method only from docs

~20 min

Quick check

Where on an MDN page do you check whether a feature works in older browsers?

Go deeper

  1. 1Look up Array.prototype.map on MDN and read the syntax, examples and browser support sections.
  2. 2When you search a problem, prefer official docs and well-voted answers over random blog posts.
  3. 3Keep a small notes file of useful doc pages you return to often.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge