I want to change the value of a variable via a HTML select prompt but it's not working.
// starting number of brick rows
const BRICK_ROWS = document.getElementById('nivel');
<select id='nivel' onchange='BRICK_ROWS()'>
<option value="1">easy</option>
<option value="2">medium</option>
<option value="3">hard</option>
</select>
BRICK_ROWS()?constuselet, I would recommend going through a tutorial about the basics of javascript