minor fixes

This commit is contained in:
Ilya Kantor 2019-07-26 23:21:49 +03:00
parent 689975093c
commit f6ff773033
24 changed files with 67 additions and 76 deletions

View file

@ -143,9 +143,9 @@ Assignments
: There is a simple assignment: `a = b` and combined ones like `a *= 2`.
Bitwise
: Bitwise operators work with integers on bit-level: see the [docs](mdn:/JavaScript/Reference/Operators/Bitwise_Operators) when they are needed.
: Bitwise operators work with 32-bit integers at the lowest, bit-level: see the [docs](mdn:/JavaScript/Reference/Operators/Bitwise_Operators) when they are needed.
Ternary
Conditional
: The only operator with three parameters: `cond ? resultA : resultB`. If `cond` is truthy, returns `resultA`, otherwise `resultB`.
Logical operators
@ -245,7 +245,7 @@ We covered three ways to create a function in JavaScript:
let result = a + b;
return result;
}
};
```
Function expressions can have a name, like `sum = function name(a, b)`, but that `name` is only visible inside that function.
@ -277,8 +277,8 @@ We covered three ways to create a function in JavaScript:
| Function Declaration | Function Expression |
|----------------------|---------------------|
| visible in the whole code block | created when the execution reaches it |
| - | can have a name, visible only inside the function |
| visible in the whole code block/script | created when the execution reaches it |
| | can have a name, visible only inside the function |
More: see <info:function-basics>, <info:function-expressions-arrows>.