ARTICLE AD BOX
In this JS file is a function which carries out a math computation based on set conditions(evaluate function). Then I found a problem in trying to visualise the computation on my front page. Heres what I tried. The button is supposed to handle the event when "go" is pressed.
const button = document.getElementById('go'); button.addEventListener('click', function showInputs() { let inputV = document.getElementsByClassName('inputs').evaluate.value; document.getElementById('out').innerHTML = inputV; showInputs(); } )but nothing shows up. or sometimes it says "undefined"
