Return result of query as variable

i am trying to change the color of the button when clicked, but it changes the color of all buttons.

$w ( “#button4” ). onClick ( ( event ) => {
$w ( “#button4” ). style . backgroundColor = “#D2F6DE
$w ( “#button4” ). style . borderColor = “#06D17E”})