We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42a4c79 commit 490776dCopy full SHA for 490776d
1 file changed
JavaScript/c-comments.js
@@ -2,12 +2,11 @@
2
3
const fs = require('fs');
4
5
-const printLine = (
6
- // Print specified line from a file
7
- fileName, // file to parse
8
- lineNumber // number, line starting from 1
9
- // Returns: boolean, success status
10
-) => {
+// Print specified line from a file
+// fileName - string, file to parse
+// lineNumber - number, line starting from 1
+// Returns: boolean, success status
+const printLine = (fileName, lineNumber) => {
11
const content = fs.readFileSync(fileName).toString();
12
const lines = content.split('\n');
13
const line = lines[lineNumber - 1];
0 commit comments