Function constructor vs Function declaration vs Function expression
This is 1 topic that I usually take for granted but never really quite “gets” it. A function can be defined with Function Constructor assigned to variable. Example: var multiply = new Function(“x”,...
View ArticleImplicit Javascript Variables
These are javascript variables that I often forget existed because they are implicit but nonetheless very useful. I’m putting them here just so that I won’t forget anymore. Hope readers found them...
View ArticleHoly Cow! Transport Tycoon in Javascript?!
Well… not quite the whole game, but the demo itself is impressive! Check it out! Furthermore, the tool that allows the developer to achieve Transport Tycoon in browser is intriguing. It’s called JSC....
View ArticleJavascript: Array.sort()
What is it? It is a global function that’s a built-in of Array object. Syntax: Array.sort(comparisonFunction); How to use sort(): If sort function is being used without comparisonFunction parameter,...
View ArticleNow I know why I like Mochikit
Before, I really don’t care much about Javascript frameworks. They all do kind of the same thing and they all works. Well, Prototype + Scriptaculous are serious pain in the neck, but I’ve moved on. I...
View ArticleJavascript Shells
For those developing Javascript, It helps a bunch to have javascript shell/console. For other browsers besides Firefox, you can use these: http://www.squarefree.com/shell/shell.html...
View ArticleSquirrelFish Extreme: WebKit’s new Javascript Engine
On September 18th, 2008, the WebKit team announce SquirrelFish Extreme(SFX), their next generation javascript engine. Based on SunSpider benchmark, SFX is 35% faster than V8, Google Chrome’s glorified...
View ArticleJavascript on Firefox 3 Slice Bug
See the code below: container = ['localhost:8080', 'aaaaaaaaa', 'history'] for(var i in container) { console.log(container[i]); console.log(container.slice(0,i+1)); } The Firebug output is below:...
View ArticlejQuery: It’s a beautiful framework
I’ve been using jQuery for more than 4 months now, and I love it more and more. Through out my career I went through Prototype + Scriptaculous, brief Mochikit, MooTools, and now jQuery. But this post...
View Article