You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wc -l does not count the number of lines, but counts the number of new lines, the exercise remains ambiguous about clarifying that
a file with no trailing new line,
wc -l will only return 2
"a
b
c"
similar to the exercise. trailing new line counts.
this will decide if you need a -1, or not
console.log(fileContents.toString().split('\n').length-1);
The text was updated successfully, but these errors were encountered:
jasonrhodes
changed the title
io - wc -l makes excercise confuding
Lesson 03 "my first io" - wc -l makes excercise confuding
Sep 27, 2014
jasonrhodes
changed the title
Lesson 03 "my first io" - wc -l makes excercise confuding
Lesson 03 "my first io" - wc -l makes excercise confusing
Sep 27, 2014
wc -l does not count the number of lines, but counts the number of new lines, the exercise remains ambiguous about clarifying that
a file with no trailing new line,
wc -l will only return 2
"a
b
c"
similar to the exercise. trailing new line counts.
this will decide if you need a -1, or not
console.log(fileContents.toString().split('\n').length-1);
The text was updated successfully, but these errors were encountered: