Brad Fitzpatrick (brad) wrote,
Brad Fitzpatrick


I've decided JavaScript is ubiquitous and pretty much usable, as most browsers now implement a functional & interesting enough subset consistently. So, it's time I learn it.... well. I'm sick of writing JavaScript only when I have to, and being in fear the whole time, not knowing what's going on under the hood.

So, I bought O'Reilley JavaScript: The Definitive Guide, 4th Edition, and I'm already starting to tolerate the language.

For clarification, I'm talking about learning the JavaScript core language, not DOM/CSS stuff. My biggest questions up to this point have been:

-- variable scoping (function-scoped only, not block-scoped.)

-- can you do closures? (yes.)

-- who defines 'window'? (the browser environment. each window has its own global execution environment, and that global object contains a self-referential property named window.... from global scope: this.window == this)

-- array/objects literal... possible? (yes.) since when? (very early.)

-- foreach statement? (no, but "for ... in" is equivalent.)

-- is string[n] proper? (no, not officially supported.... use Stirng.charAt())

Anyway, time to hack, now that I can go faster. I was trying to do some things earlier, but my lack of skills were impeding.

  • Ukraine

    Nobody reads my LiveJournal anymore, but thank you to everybody in Russia protesting Putin's insane war against Ukraine. (I know it's risky…

  • Happy Birthday!

    Happy 20th Birthday, LiveJournal! 🐐🎂🎉

  • hi

    Posting from the iPhone app. Maybe I'm unblocked now.

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.