KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
My attempts at giving global scope to a nested JavaScript function are not working: //DECLARE FUNCTION B IN GLOBAL SCOPE function B; function A() { //DEFINE FUNCTION B INSIDE NEST B() { alert("function B is running"); } } //CALL FUNCTION B FROM GLOBAL SCOPE B(); This is just curiosity -- you are correct that I don't really have any good reason to want to do this. TIA -- I don't have an SO account to respond to your answers...
Tags (comma-separated)
Save Edits
Cancel