let a = +prompt('Введите число');
let b = +prompt('Введите число');
if(a > b) {
alert(b + ","+ a);
alert(a + ","+ b);
}
else {
alert(a + ","+ b);
alert(b + ","+ a);
}
const maxTransform = (num) => {
if(num >= 0 && num <= 9) {
return num;
}
const digits = String(num)
.split('')
.sort((a, b) => Math.sign(b - a));
return Number(digits.join(''));
};
function isTrue(arr) {
for (let elem of arr) {
if (elem % 2 !== 0) {
return false;
}
}
return true;
}
let sum = 0;
for (let key in object) {
const prop = object[key];
for (let innerKey in prop) {
const innerProp = prop[innerKey];
sum += innerProp;
}
}
git config --global init.defaulBranch main
только с 2.28 работает. https://github.blog/2020-07-27-highlights-from-git...