Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /var/www/whoknew.dk/public_html/wp-includes/plugin.php on line 601

Warning: Parameter 1 to wp_default_styles() expected to be a reference, value given in /var/www/whoknew.dk/public_html/wp-includes/plugin.php on line 601
Object | Jacob T. Nielsen

JavaScript function properties

One of my favorite parts of JavaScript is that functions are first-class objects. This might sound trivial but does, in fact, have some very useful implications in that a function is just a type of object with the same behavior as “regular” objects. As an example: a function can return a function, have properties and […]