From e103ea342b3a48cbce1af70dfb2e19f217e8461b Mon Sep 17 00:00:00 2001 From: trlam0387 Date: Mon, 3 Aug 2026 13:11:27 -0500 Subject: [PATCH 1/5] Update tasks.txt --- tasks.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks.txt b/tasks.txt index f48e33d..62613b2 100644 --- a/tasks.txt +++ b/tasks.txt @@ -1 +1,4 @@ # To-Do List +Complete Git lesson +Review HTML basics +Start JavaScript exercises \ No newline at end of file From c5edca3a14821a6fabd58b1ddf9ee5e6780238e7 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 4 Aug 2026 14:22:01 -0500 Subject: [PATCH 2/5] Update tasks.txt --- tasks.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tasks.txt b/tasks.txt index 62613b2..8eb1a6f 100644 --- a/tasks.txt +++ b/tasks.txt @@ -1,4 +1,2 @@ -# To-Do List -Complete Git lesson -Review HTML basics -Start JavaScript exercises \ No newline at end of file +npm install readline-sync +const readline = require('readline-sync'); From 9805beb30935101667b2644014f0cce3d5daf7c0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 6 Aug 2026 10:49:13 -0500 Subject: [PATCH 3/5] Create readline.txt --- readline.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 readline.txt diff --git a/readline.txt b/readline.txt new file mode 100644 index 0000000..8439f6f --- /dev/null +++ b/readline.txt @@ -0,0 +1,2 @@ +npm install readline-sync +const readline = require(readline-sync); From 7bfdf186605a7d5892aea14bcefdf3af3f587edc Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 6 Aug 2026 12:03:12 -0500 Subject: [PATCH 4/5] Create app.js --- app.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 app.js diff --git a/app.js b/app.js new file mode 100644 index 0000000..05ad396 --- /dev/null +++ b/app.js @@ -0,0 +1,40 @@ +// Import readline-sync +const readline = require("readline-sync"); + +// Ask for the user's name +let userName = readline.question("What is your name? "); + +// Greet the user +console.log(`\nHello, ${userName}! Let's test your knowledge of Values, Data Types, and Operations.\n`); + +// Ask 5 questions +let favoriteDataType = readline.question( + "1. What is your favorite JavaScript data type? " +); + +let numberValue = Number( + readline.question( + "2. Enter a number: " + ) +); + +let booleanValue = readline.question( + "3. What value represents 'true' or 'false' in JavaScript? " +); + +let additionOperator = readline.question( + "4. Which operator is used for addition in JavaScript? " +); + +let stringValue = readline.question( + "5. What data type is used to store text? " +); + +// Print the user's answers +console.log("\n----- Your Answers -----"); +console.log(`Name: ${userName}`); +console.log(`Favorite Data Type: ${favoriteDataType}`); +console.log(`Number Entered: ${numberValue}`); +console.log(`Boolean Answer: ${booleanValue}`); +console.log(`Addition Operator: ${additionOperator}`); +console.log(`Text Data Type: ${stringValue}`); From 53bf0af8338c5a7dc732d1343476ff8c91494d40 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 7 Aug 2026 10:23:07 -0500 Subject: [PATCH 5/5] practice-character-checker-tiana-l --- node_modules/readline-sync/index.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 node_modules/readline-sync/index.js diff --git a/node_modules/readline-sync/index.js b/node_modules/readline-sync/index.js new file mode 100644 index 0000000..d5ad88f --- /dev/null +++ b/node_modules/readline-sync/index.js @@ -0,0 +1,18 @@ +const readline = require('readline'); + +const rl = readline.createInterface({ + input: process.stdin, + output: process.stdout +}); + +function question(prompt) { + return new Promise((resolve) => { + rl.question(prompt, (answer) => { + resolve(answer); + }); + }); +} + +module.exports = { + question +};