const a = b ? 1 : 2;
let a;
if(b) {
a = 1;
} else {
a = 2;
}
// ---
const s = `qwerty${a > 1 ? 'asd' : 'zxc'}`;
let s = 'qwerty';
if(a > 1) {
s = `${s}asd`;
} else {
s = `${s}zxc`;
}
const inputList = document.querySelectorAll("input");
inputList.forEach(input => {
input.addEventListiner('click', () => {
let color = '#03f3f3';
if(input.checked) {
switch(input.value) {
case '1':
color = '#00ff00';
case '2':
color = '#ccff00';
}
}
document.body.style.backgroundColor = color;
});
})
ttypescript + typescript-transform-paths)
В фф на данный момент можно изменить только: