![]() |
Function scope in JavaScript refers to the scope of variables and functions that are defined within a function. Variables and functions declared with the Variables declared inside a function are accessible only within that function and any nested functions. They are not accessible outside of the function in which they are defined. This means that variables declared within a function cannot be accessed before their declaration or outside of the function. Example: Here, the variable Javascript
Output
10 10 |
Reffered: https://www.geeksforgeeks.org
JavaScript |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |