From 0eebb269f08e293d4a487a44b6132b0a20836bf1 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 4 Dec 2023 19:01:58 +0900 Subject: [PATCH] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 640bba9..7b1bbf3 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,8 @@ I presented this project in [the open-source contest in the Republic of Korea in ## Make your own `sayhello` example ### 1. Write a file `lib/sayhello.js` -``` +```js +// lib/sayhello.js function say() { console.log("hello"); } @@ -83,7 +84,8 @@ exports.require = global.require; ``` ### 2. Write a file `sayhello.js` -``` +```js +// sayhello.js var SayHello = require("lib/sayhello"); function main() { @@ -96,7 +98,7 @@ exports.main = main; ``` ### 3. Execute file on the command prompt -``` +```cmd C:\Users\oss\Documents\GitHub\welsonjs> cscript app.js sayhello calling say() hello