Javascript – How to get variable's value outside a function?
I am beginer learning first steps with JS. Today i got problem with Variable. I can't get the variable's value outside a function. First i have this html <label for="inputValue">Input here</label> <input type="text" id="inputValue"> <button id="addbtn">Button</button> <h4 id="result"></h4> and scripts…