skip to main | skip to sidebar

Making sense out of the views

Being agile is not forcing agile methodology.

Friday, October 16, 2009

javascript scope

In JavaScript, {blocks} do not have scope. Only functions have scope. Vars defined in a function are not visible outside of the function.
Labels: javascript

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Lables

asp.net (4) asp.net ajax (2) asp.net mvc (4) c# (1) clr (4) css (11) database (1) Diagnostic (3) Entity Framework (15) javascript (26) Linq (2) Network (1) others (1) reflection (1) SharePoint (38) Software Design (5) svn (5) Unit Test (11) WCF (3) web design (2) WF (12) xslt (7)

Blog Archive

  • ▼  2009 (87)
    • ▼  October (12)
      • Best practice to develop jQuery plugin
      • type check in jQuery
      • it must be "new"ed.
      • javascript scope
      • function overload
      • later method
      • fixed a closure bug
      • efficency string operation
      • the bind function
      • memoried function
      • curry function
      • an issue caused by prototype inheritance in javasc...
    • ►  September (3)
    • ►  July (16)
    • ►  June (9)
    • ►  May (2)
    • ►  April (20)
    • ►  March (15)
    • ►  February (2)
    • ►  January (8)
  • ►  2008 (73)
    • ►  December (39)
    • ►  November (33)
    • ►  October (1)

About Me

Fred Yang
View my complete profile