What is wrong with this code? - - <!Doctype html> <head> </head> <body> <form> <input type="text" id="input"> </form> <button type="button" id="button">Click here</button> <script> var input=document.getElementById("input"); var button=document.getElementById("button"); function display() { if (button.clicked == true) { console.log("input"); } }; display(); </script> </body>
Need someone for debugging