let possibleBlock = document.querySelector('.ytem');
console.log(possibleBlock?.style.backgroundColor);
let possibleBlock = document.querySelector('.ytem');
possibleBlock?.style.backgroundColor = getRandomRgb();
Optional chaining not valid on the left-hand side of an assignment
let object = {}; object?.property = 1; // Uncaught SyntaxError: Invalid left-hand side in assignment