Click for anchor link JS Test Framework This vote macro is locked

Choices Your Vote Current Result: (1 Total Votes) Comments
Mocha
0 Votes , 0%
Jest
0 Votes , 0%
AVA
0 Votes , 0%
Jasmine
1 Vote , 100%

Click for anchor link Declaration of variables This vote macro is locked

Choices Your Vote Current Result: (3 Total Votes) Comments
Use var
0 Votes , 0%
Not voted: this is set.
Use only const and let
3 Votes , 100%

Click for anchor link Where to declare variables This vote macro is locked

Choices Your Vote Current Result: (3 Total Votes) Comments
Declare all variables at the beginning
0 Votes , 0%
Not voted: this is set
Declare variables just before using them
3 Votes , 100%

Click for anchor link Use of semicolon This vote macro is locked

Choices Your Vote Current Result: (2 Total Votes) Comments
Semi-colon terminated statements
2 Votes , 100%
Not voted: this is set
Don't use semi-colons
0 Votes , 0%

Click for anchor link Spacing (IntelliJ will automatically convert to this form) This vote macro is locked

Choices Your Vote Current Result: (3 Total Votes) Comments
2 Spaces
0 Votes , 0%
4 Spaces
2 Votes , 66%
Tabs
1 Vote , 33%

Click for anchor link Trailing Commas This vote macro is locked

Choices Your Vote Current Result: (2 Total Votes) Comments
Yes Always. const foo = [x, y, z,]
0 Votes , 0%
Multiline Only.
2 Votes , 100%
Never. const foo = [x, y, z]
0 Votes , 0%

Click for anchor link Value Coercion Comparison This vote macro is locked

Choices Your Vote Current Result: (3 Total Votes) Comments
Allow == and != . '1' == 1 -> true . ' ' == 0 -> true
2 Votes , 66%
Not voted: in the first case, flow may complain about the type
Only Allow === and !== . '1' === 1 -> false . ' ' === 0 -> false
1 Vote , 33%

Click for anchor link String interpolation This vote macro is locked

Choices Your Vote Current Result: (2 Total Votes) Comments
Use concatenation. "Hello " + firstname;
2 Votes , 100%
Not voted: this is set.
Use inline variables (ES6 only). `Hello ${firstname}`
0 Votes , 0%

Click for anchor link Object initialization This vote macro is locked

Choices Your Vote Current Result: (3 Total Votes) Comments
Explicit new. const x = new Array(), const x = new Object()
1 Vote , 33%
Implicit. const x = [], const x = {};
2 Votes , 66%

Click for anchor link Components/Containers Class Name This vote macro is locked

Choices Your Vote Current Result: (3 Total Votes) Comments
snake_case
0 Votes , 0%
Not voted: PascalCase!!!!!! no need to change
camelCase
1 Vote , 33%
PascalCase
2 Votes , 66%
MACRO_CASE
0 Votes , 0%

Click for anchor link Variable Case This vote macro is locked

Choices Your Vote Current Result: (2 Total Votes) Comments
snake_case
1 Vote , 50%
Not voted: camelCase!!!
camelCase
1 Vote , 50%
PascalCase
0 Votes , 0%
MACRO_CASE
0 Votes , 0%

Click for anchor link Function Case This vote macro is locked

Choices Your Vote Current Result: (2 Total Votes) Comments
snake_case
0 Votes , 0%
Not voted: camelCase!!!
camelCase
2 Votes , 100%
PascalCase
0 Votes , 0%
MACRO_CASE
0 Votes , 0%

Click for anchor link Actions Case This vote macro is locked

Choices Your Vote Current Result: (2 Total Votes) Comments
snake_case
0 Votes , 0%
Not voted: this is set.
camelCase
0 Votes , 0%
PascalCase
0 Votes , 0%
MACRO_CASE
2 Votes , 100%

Click for anchor link State variables Case This vote macro is locked

Choices Your Vote Current Result: (3 Total Votes) Comments
snake_case
1 Vote , 33%
Not voted: camelCase!!!
camelCase
2 Votes , 66%
PascalCase
0 Votes , 0%
MACRO_CASE
0 Votes , 0%
  • No labels