DevChunks

JavaScript Tips and Tricks

JavaScript is a functional scripting language that is mainly in use as a language for running client-side scripts in a web browser. It is also common in other applications outside of web pages including PDF documents and desktop widgets. The launch of faster JavaScript virtual machines has lead to an increase in the use in server-side web applications.

JavaScript has syntax similar to that of C and takes many of its conventions and names from Java, but it is different to either language. It is actually an implementation of the ECMAScript language that has borrowed the design principles of the Self and Scheme languages.

  1. Joining Strings Together
  2. Assertion
  3. Null, Undefined and Delete
  4. Using Firebug
  5. Objects and Associative Arrays
  6. Type Conversion
  7. Anonymous functions
  8. Polymorphic Functions
  9. Context Object Manipulation
  10. Iteration

Share:

Leave a Reply

Your email address will not be published.

More Posts

How to use PHP Type Declarations

PHP has developed into a more strictly typed language in recent years. Type Declarations help with that and are a fairly new addition to PHP,

Iteration

If you have come to JavaScript from a background in Java or C, then you will like the variation on the for loop. It is

Context Object Manipulation

One of the key concepts of JavaScript is the keyword this, which signifies the JavaScript context object. If you write an inner function, you can access

Polymorphic Functions

It is possible to define multiple functions with the same name in JavaScript, and the last one of those that you define will be the