No. JavaScript does not have concept-level scope. The variable declared inside the function has scope inside the function. Post navigation What a pop()method in JavaScript is? What are the disadvantages of using innerHTML in JavaScript?