I often get asked, when giving talks on JavaScript, when and why you should declare variables. If you remember these four points, you’ll save yourself a lot of trouble: The lexical scope of local functions in JavaScript is always at the function level. Declaring a local variable anywhere inside a function is effectively the same …
KeeKim Heng
Web development tips and tricks
Test post
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging! var test=’hello world’; alert(test); hello..