Skip to content

Commit d18938d

Browse files
committed
Revert "hw"
This reverts commit 7597a64.
1 parent d234700 commit d18938d

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
2-
const input = require('readline-sync');
1+
// create an array variable containing the names
32

4-
let num = input.question('Please enter a positive number:');
5-
num = Number(num);
6-
7-
while (num <= 0) {
8-
num = input.question('Invalid input. Please enter a positive number:');
9-
num = Number(num);
10-
}
3+
// write a for loop that prints each name on a different line
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
// Create a string variable containing your name.
2-
let name= "Gerardo";
32

4-
for (let i= 0; i < name.length; i++) {
5-
console.log(name[i]);
6-
}
73

84
// Write a for loop that prints each character in your name on a different line.

loops/chapter-examples/package-lock.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)