Friday, February 28, 2014

JavaScript Data Types

JavaScript Data Types
Primitive Types
Object Types
  • string
  • number
  • boolean
  • null
  • undefined
fundamental Object types
specialized Object types
  • Object
  • Array
  • Function
  • Date
  • RegExp
  • Error

Sunday, February 16, 2014

JavaScript Execution Contexts

1 - Execution Context or Context


The execution context or context is the environment where JavaScript code is evaluated.
→ Global (execution) context
The global execution context is the most outer execution context.
In browsers the global context is also known as window context. In a browser global variables are window properties and global functions are window methods. 
→ Function or Local (execution) context
When a function is called a function execution context is created.