window.onscroll = function() {
if (window.scrollY>200) {
$('.footer').show();
} else {
$('.footer').hide();
}
};
function a() {
console.log('a_'+Date.now());
}
function b() {
console.log('b_'+Date.now());
}
function c() {
console.log('c_'+Date.now());
}
function que() {
funs = [a, b, c];
funs.forEach((f, i) => {
setTimeout(f, i*1000);
});
}
que();
or (let i = 0; i < 10; i++) {
setTimeout(function () {
console.log(i); // ?
}, 0);
}
.center + .item {
//Следующий
}
(function() {
return arguments.callee;
})()()()().... ;
function namedFunc() {
return namedFunc;
}
namedFunc()()()().... ;
var storedFunc = function() {
return storedFunc;
};
storedFunc()()()().... ;
let sel = window.getSelection();
let range = sel.getRangeAt(0);
let boundary = range.getBoundingClientRect();