David Ogilo

menu search

In JavaScript a function or method is automatically assigned a member function, an example is the .toString() function which returns a string representation of the method. Both .call and .apply functions are member functions of the Function prototype. Below I’ll show the uses of both functions and hopefully explain how they work in the process.

OBJECT INHERITANCE

In this example, I’ll be creating a parent and child notation object. The parent contains a function…

Whilst adding custom meta boxes to a content type in wordpress, I noticed that when inserting a media file into a custom text editor it always gets added to the content text editor. The reason for this is because the active editor is hard coded in the source code, as shown below in…

Old school browser detected!

Your browser is out of date, which means you can't use any of the site's required features. You can either upgrade your browser or switch to either Mozilla Firefox or Google Chrome