Created
January 10, 2018 04:24
-
-
Save externvoid/f0ff84c6679113dcaaea8978f3d303c5 to your computer and use it in GitHub Desktop.
ES6はどこで改行してもOK!(node -v 9.2.0)
This file contains hidden or 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
| const f = (x) => { | |
| return ( | |
| x * x | |
| ) | |
| } | |
| const g = (x) => | |
| { | |
| return ( x | |
| * x | |
| ) | |
| } | |
| console.log(f(2)) | |
| console. | |
| log(g(4)) | |
| console | |
| .log(g(8)) | |
| // JSソースはどこで改行してもOK!、文末のセミコロンも不要 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment