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 c8d7354 commit 81aeefdCopy full SHA for 81aeefd
_til/codestyle/js.md
@@ -0,0 +1,25 @@
1
+---
2
+title: JavaScript
3
+category: codestyle
4
5
+
6
+__JS__ (Use something like ESLint)
7
+```js
8
+//Function Signatures:
9
+function foo(arg1, arg2) {
10
11
+//if/else
12
+if x == y {
13
+ return x;
14
+}
15
+return y;
16
17
+//No non bracketed blocks
18
+//wrong:
19
+if x == 1
20
+ return true;
21
+//correct:
22
+if x == 1 {
23
24
25
+```
0 commit comments