From 778f831d38900427ebc060115e72e201b80bb5ea Mon Sep 17 00:00:00 2001 From: Jonathan Green <dev.jonathan.green@gmail.com> Date: Thu, 2 Jul 2026 17:17:56 -0400 Subject: [PATCH] feat: accept a name argument with 'world' fallback Closes issue 68f5c016e5a3128d7af740e088fc5d94e56edda4205fffa56aa3d58fe6bb55ee --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index a8141d3..5628978 100644 --- a/index.js +++ b/index.js @@ -1 +1,2 @@ -console.log("Hello, world!"); +const name = process.argv[2] || "world"; +console.log(`Hello, ${name}!`); -- 2.43.0
LGTM, one nit: default should stay 'world'
Second contributor here: patch applies cleanly with git am on my copy. +1
← All patches and pull requests
LGTM, one nit: default should stay 'world'
Second contributor here: patch applies cleanly with git am on my copy. +1