А
Size: a a a
А
М
М
G
ST
A
S
f
k
T
MR
$( document ).ready(function(e) {;
let mas;
let mas2 = [];
var adrsp = document.querySelectorAll('.balls');
adrsp.forEach(function(value) {
mas = value.textContent;
console.log(mas);
if(mas == '') {
mas = '0 Б.';
}
})
AP
$( document ).ready(function(e) {;
let mas;
let mas2 = [];
var adrsp = document.querySelectorAll('.balls');
adrsp.forEach(function(value) {
mas = value.textContent;
console.log(mas);
if(mas == '') {
mas = '0 Б.';
}
})
value.textContent = 'some text'
MR
value.textContent = 'some text'
AP
T
OJ
if (event.keyCode == 8) {
return checkAllInputsNotHasFocus() && moveCaretToInput() && event.preventDefault()
}
///////////////////
function moveCaretToInput() {
const input = document.querySelector('input')
input.focus()
}
S
new Promise((resolve) => {
setTimeout(() => {
resolve();
});
console.log(1);
})
.then(() => {
setTimeout(() => {
console.log(2);
});
})
.then(() => {
console.log(3);
})
Кто в промисах разбирается, подскажите как сделать чтобы в консоль выпадало 1, 2, 3, а не как сейчас 1, 3, 2DM
console.log(1)
console.log(2)
console.log(3)
AS
console.log(1)
console.log(2)
console.log(3)
AS
new Promise((resolve) => {
setTimeout(() => {
resolve();
});
console.log(1);
})
.then(() => {
setTimeout(() => {
console.log(2);
});
})
.then(() => {
console.log(3);
})
Кто в промисах разбирается, подскажите как сделать чтобы в консоль выпадало 1, 2, 3, а не как сейчас 1, 3, 2for (int i = 1; i <= 3; i++) {
console.log(i);
}