JavaScript Concepts
Aug 6, 2010 • @dcodernz
Having learned JavaScript mainly by doing, it was quite late that I figured out some important details. Please comment if you think or know that I'm wrong.
The arguments array as well as the caller instance are universal variables inside every JavaScript function. The names are self-explanatory.
An anonymous function inside another function keeps the variables in scope as in:
So this means that the scope of the function defines what variables can be accessed within it, even after the function call has finished.
Another part I always found confusing in JavaScript is the "this"-keyword, but that might have to be the topic of another post.
home
about
++learn
tags
14.04 Android Announcement Apache2 Asus BASH Bitcoin Blogging Bounty Build CMS CSS Collections Commands Competition Compute Computer Conference Configuration Crypto Currency Deployment Development Digital Distributed Education Email Factory GIS Generics Google Gradle HTML5 HTTP Hey Howto Ideas Implement Installation Java JavaScript Jekyll Kernel Language Laptop Learn++ Linux Mobile Money Open Open Source P2P PHP Plugins PostGIS Power Programming Project RT2800USB Review Science Server Settings Source Student Support Tagging This Thoughts Tool Tricks Ubuntu Universal Video VirtualHost Web Windows Wireless Wlan bing bitcoin computer contains cp crypto currency database duckduckgo engine google jQuery middleware mysql optimization philosophy postgresql science search seo tips tricks value
Comments