-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create test.js #1
base: master
Are you sure you want to change the base?
Changes from 14 commits
71781f6
7be3b4f
fb72655
754624f
ca8632c
fd9bab4
5582b4a
edd5f7b
d240dea
3ba339d
62fd761
fec8819
67683b6
3197894
9153a1f
1b2abc1
deb1d90
a7990a1
e145099
82faf45
0878dd7
5d2eb56
448c0dd
7ec46ee
abf20b7
0cc1d04
7cc45b4
0a1f0c7
d257dd7
a0551b6
49d06ca
6918af3
674ffdb
665ab6e
08c1460
d77fb4a
70093fb
d23e2c5
a3925ca
6e6225d
3f4ec6d
159b0fd
fb0ca03
b25dbf6
53584bf
f7599f8
952cd8f
01f0a00
207d131
3544bcc
54abaef
8a148cb
3cc06e0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/************************************************************************* | ||
* Compilation: javac HelloWorld.java | ||
* Execution: java HelloWorld | ||
* | ||
* Prints "Hello, World". By tradition, this is everyone's first program. | ||
* | ||
* % java HelloWorld | ||
* Hello, World | ||
* | ||
* These 17 lines of text are comments. They are not part of the program; | ||
* they serve to remind us about its properties. The first two lines tell | ||
* us what to type to compile and test the program. The next line describes | ||
* the purpose of the program. The next few lines give a sample execution | ||
* of the program and the resulting output. We will always include such | ||
* lines in our programs and encourage you to do the same. | ||
* | ||
*************************************************************************/ | ||
|
||
public class HelloWorld { | ||
|
||
public static void main(String[] args) { | ||
System.out.println("Hello, World"); | ||
|
||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
function main(a, b) { | ||
switch (cond) { | ||
case "one": | ||
doSomething(); // JSHint will warn about missing 'break' here. | ||
case "three": | ||
doSomethingElse(); | ||
case "two": | ||
|
||
doSomethingElse(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. jshint.W117: 'doSomethingElse' is not defined. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. jshint.W117: 'doSomethingElse' is not defined. |
||
} | ||
|
||
// test for deleting old comments. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ****: Trailing spaces not allowed. (no-trailing-spaces) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ****: Trailing spaces not allowed. (no-trailing-spaces) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ****: Trailing spaces not allowed. (no-trailing-spaces) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ****: Trailing spaces not allowed. (no-trailing-spaces) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ****: Trailing spaces not allowed. (no-trailing-spaces) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ****: Trailing spaces not allowed. (no-trailing-spaces) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Trailing spaces not allowed. (no-trailing-spaces) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ****: Trailing spaces not allowed. (no-trailing-spaces) |
||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. jshint.W116: Expected '===' and instead saw '=='. |
||
return a == null; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. jshint.W116: Expected '===' and instead saw '=='. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. jshint.W116: Expected '===' and instead saw '=='. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. jshint.W116: Expected '===' and instead saw '=='. |
||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ****: Unexpected blank line at end of file. (eol-last) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ****: Unexpected blank line at end of file. (eol-last) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ****: Unexpected blank line at end of file. (eol-last) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ****: Unexpected blank line at end of file. (eol-last) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ****: Unexpected blank line at end of file. (eol-last) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ****: Unexpected blank line at end of file. (eol-last) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unexpected blank line at end of file. (eol-last) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ****: Unexpected blank line at end of file. (eol-last) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jshint.W117: 'doSomethingElse' is not defined.