From 2793900d1c4a51c480200fa3b9ffb339f462684e Mon Sep 17 00:00:00 2001 From: Brittney Trinh Date: Wed, 26 Jul 2023 12:11:17 -0700 Subject: [PATCH] create function using i/o --- src/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/index.ts b/src/index.ts index 18d1f5b..34ae2bd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,3 +9,13 @@ const MANDATES_CSV = const CITIES_JSON = "https://raw.githubusercontent.com/ParkingReformNetwork/parking-lot-map/main/data/score-cards.json"; + const rl = readline.createInterface({ + input: process.stdin, + output: process.stdout +}); + + +rl.question("Guess the percentage: ", function(percent) { + console.log(`${percent} was guessed.\n`); + rl.close(); +}) \ No newline at end of file