Archive

Posts Tagged ‘javascript’

Javascript CREATING OBJECTS AND METHODS

July 26th, 2014 No comments

JAVASCRIPT CREATING OBJECTS AND METHODS
########################################
1)Scope and Hoisting
Scope = a variable visibility
– globoal scope, out of a function
– function scope, inside a function
Does not support block scope (inside if/else for example)
Hoisting : When a var is declared in a block it is elevated to function scope

Read more…

Categories: HowTo, Javascript Tags: , ,