Skip to content

Commit

Permalink
create function using i/o
Browse files Browse the repository at this point in the history
  • Loading branch information
brittktrinh committed Jul 26, 2023
1 parent 444d736 commit 2793900
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
})

0 comments on commit 2793900

Please sign in to comment.