Sarfraz Ahmed's Blog

PHP, MySQL, jQuery, JavaScript, Ajax, CSS, HTML and more

Tag Archives: Javascript

JavaScript Best Practices

JavaScript is not only amazing language but also very tricky language. To make correct use of it, you need to follow some best practices to avoid any problems that might come about otherwise. I share some of the best practices you really should be following when writing JavaScript code. Of course this is not an [...]

Learning Javascript

JavaScript is cross-platform, cross-browser language; javascript is everywhere; web, RIA (rich internet applications), mobile, tablets, animations and even on server with the advent of node.js. Javascript is the language of the future. I started off with jQuery without knowing anything much about javascript because by the time I didn’t find any reason to learn it due to fact [...]

Javascript Self Invoking Functions

In this article, I will discuss self-executing or self-invoking functions of javascript and their hidden power with real-world example. We will also see why using setInterval is bad in some situations and should be avoided. Let’s explore little used but extremely powerful self-invoking functions of javascript. Self-Invoking Anonymous Function A self-invoking anonymous runs automatically/immediately when you [...]

Follow

Get every new post delivered to your Inbox.

Join 164 other followers