menu
CODER
LEGION
Apple Login
Facebook Login
GitHub Login
Google Login
X Login
Login
Sign Up
search
Log In
account_circle
Welcome to
Coder Legion
Connect with 6,136 amazing developers
Email or Username
Password
Forgot your password?
Remember
Log In
Don't have an account?
Sign up
OR
Continue with Apple
Continue with Facebook
Continue with GitHub
Continue with Google
Continue with X
New Post
Home
Tags
Launches
Videos
Dev Stories
Discussions
Series
Groups
Jobs
Developers
Users
More
Posts by Ramya Sri M
@Ramya Sri M
Ramya Sri M
Hi, I'm Ramya Sri. I enjoy learning new things, diving deep into how they work, ...
India
Joined June 2026
137
Points
•
8
Badges
•
4
Connections
•
4
Followers
•
7
Following
Profile
Stats
Wall
Posts
Badges
Posts by Ramya Sri M
Posts
Comments
Reviews
Ramya Sri M
•
Jun 10
•
in
Articles
•
1 min read
Closures in JS
Closures A function, bundled together with its lexical scope, forms a closure. A closure provides access to an outer function's scope from an inner function. function x { var a = 7; function y { console.loga ; } y ; } x ; // 7 ...
javascript
programming
beginners
learning
3
Reactions
2
Comments
content_copy
Share on Facebook
Share on X
Share on Reddit
Share on LinkedIn
Share on Pinterest
Share on HackerNews
Load more
chevron_left