← Rohit Raj

The First Program That Actually Worked

I still remember the exact moment the terminal printed Hello, world! and it felt like the machine had spoken back to me.

Here's what they don't tell you: your first program working is 10% code and 90% not giving up.

The code that started it all

function greet(name) {
  return `Hello, ${name}!`;
}

console.log(greet("world"));

Maybe ten lines. But it was mine, and it ran.

What it taught me

  • Computers do exactly what you say, which is rarely what you mean.
  • A working program is just a bug you haven't found yet.
  • The joy of the first console.log never fully goes away — you just chase bigger ones.

If you're staring at your first red error message right now: keep going. The machine is about to speak back.