Convert "hello world from node" to title case.
Ready — edit the code above and click Run.
const s = "hello world from node";
console.log(s.split(" ").map(w => w[0].toUpperCase() + w.slice(1)).join(" "));
Try solving on your own first, then reveal the official answer.
Map over words—similar pattern to React list rendering.