Run »
<html> <body> <p>A function can access variables defined outside the function:</p> <button type="button" onclick="myFunction()">Click Me!</button> <p id="demo"></p> </body> </html>
×
Report a Problem:
Your E-mail:
Page address:
Description:
Submit