Here is the code:
function fastmenu() { let menu = document.getElementById('actions'); if (menu.style.opacity != 1) { return menu.style.opacity = 1; } menu.style.opacity = 0; } tried to do so
let menu = document.getElementById('actions').style.opacity; so:
let menu = document.getElementById('actions'); let opacity = menu.style.opacity; Does not work. Your view on why this is not working and how can this be corrected?