This code doesn't work, why?
<!DOCTYPE html> <html> <head> <title>Feeling good?</title> </head> <body> <h1> How are you feeling? </h1> <o> <button onclick="show()">Sad</button> </o> <e> <button onclick="result()">Happy</button> </e> <a> <button onclick="see()">Bored</button> </a> <script type="text/jascript"> var x = document.getElementById("o"); var x = () => { function show(){ document.write('Dress with a blue shirt and jeans') } } var y = document.getElementById("e"); var y = () => { function result(){ document.write('Dress with a yellow t-shirt and brown trousers') } } var w = document.getElementById("e"); var w = () => { function see(){ document.write('Dress with a long black sleeve') } } </script> </body> </html>