Created
August 22, 2014 15:30
-
-
Save KevinJones/619706498319f6584adc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to fish, the friendly interactive shell | |
Type help for instructions on how to use fish | |
~/D/P/c/puma (master) $ cd ~/Desktop/ | |
~/Desktop $ ls | |
temp.js | |
~/Desktop $ node temp.js | |
8 | |
~/Desktop $ gjslint temp.js | |
----- FILE : /home/kevin/Desktop/temp.js ----- | |
Line 1, E:0002: Missing space after "," | |
Line 2, E:0005: Illegal tab in whitespace before "return" | |
Line 5, E:0010: Missing semicolon at end of line | |
Line 6, E:0005: Illegal tab in whitespace before "(" | |
Line 6, E:0002: Missing space after "," | |
Line 8, E:0300: File does not end with new line. (console.log(x);) | |
Found 6 errors, including 1 new errors, in 1 files (0 files OK). | |
Some of the errors reported by GJsLint may be auto-fixable using the script | |
fixjsstyle. Please double check any changes it makes and report any bugs. The | |
script can be run by executing: | |
fixjsstyle temp.js | |
~/Desktop $ fixjsstyle temp.js | |
Fixed 4 errors in /home/kevin/Desktop/temp.js | |
~/Desktop $ node temp.js | |
[Function: add] | |
~/Desktop $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Original JS file | |
function add(x,y) { | |
return x + y; | |
} | |
var x = add | |
(3,5); | |
console.log(x); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Modified JS file | |
function add(x, y) { | |
return x + y; | |
} | |
var x = add; | |
(3, 5); | |
console.log(x); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment