for (var i = 0; i < 16; i++) {
console.log(i + " & 0x3 = " + (i & 0x3))
}
/*
0 & 0x3 = 0
1 & 0x3 = 1
2 & 0x3 = 2
3 & 0x3 = 3
4 & 0x3 = 0
5 & 0x3 = 1
6 & 0x3 = 2
7 & 0x3 = 3
8 & 0x3 = 0
9 & 0x3 = 1
10 & 0x3 = 2
11 & 0x3 = 3
12 & 0x3 = 0
13 & 0x3 = 1
14 & 0x3 = 2
15 & 0x3 = 3
*/
for (var i = 0; i < 4; i++) {
console.log(i + " | 0x8 = " + (i | 0x8))
}
/*
0 | 0x8 = 8
1 | 0x8 = 9
2 | 0x8 = 10
3 | 0x8 = 11
*/
for (var i = 0; i < 16; i++) {
console.log(i + " & 0x3 | 0x8 = " + (i & 0x3 | 0x8))
}
/*
0 & 0x3 | 0x8 = 8
1 & 0x3 | 0x8 = 9
2 & 0x3 | 0x8 = 10
3 & 0x3 | 0x8 = 11
4 & 0x3 | 0x8 = 8
5 & 0x3 | 0x8 = 9
6 & 0x3 | 0x8 = 10
7 & 0x3 | 0x8 = 11
8 & 0x3 | 0x8 = 8
9 & 0x3 | 0x8 = 9
10 & 0x3 | 0x8 = 10
11 & 0x3 | 0x8 = 11
12 & 0x3 | 0x8 = 8
13 & 0x3 | 0x8 = 9
14 & 0x3 | 0x8 = 10
15 & 0x3 | 0x8 = 11
*/
$(el).off(eventName, callback)
var foo = (function() {})
console.log(foo.name) // ''
function foo2() {}
var test = foo2
console.log(test.name) // foo2
function foo() { /* */ }
var foo = (function() { /* */ })
// тоже самое что и
var foo = function() { /* */ }