Skip to content

Commit d6f793d

Browse files
feat: solved 2nd stage of the Hyperskill project "Chalkboard Printer"
1 parent 394c23d commit d6f793d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

hyperskill/08_chalkboard_printer/02/.gitkeep

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// We have imported the 'sync-input'
2+
// This package allows you to get user input.
3+
// Like so:
4+
// let name = input("Type your name: ");
5+
// let age = Number(input("Type your age: "));
6+
7+
const input = require('sync-input');
8+
9+
const name = input("Enter name: ")
10+
const surname = input("Enter surname: ")
11+
const message = input("Enter message: ")
12+
13+
for (let i = 0; i < 5; i++) {
14+
console.log(`This is ${name} ${surname} and ${message}`);
15+
}

0 commit comments

Comments
 (0)