Monthly Archives: June 2016

What is javascript prototype?

Every JavaScript object has an internal property called [[Prototype]].we can set properties or methods to the javascript object which should created by new operator like var Father = new Person(“John”, “Doe”, 50, “blue”); Let’s see using example: function Person(first, last, … Continue reading

Posted in Javascript | Leave a comment

jQuery prototyping or What does jQuery.fn mean?

In jQuery, the fn property is just an alias to the prototype property. The jQuery identifier (or $) is just a constructor function, and all instances created with it, inherit from the constructor’s prototype. A simple constructor function: function Test() … Continue reading

Posted in jQuery | Leave a comment

var functionName = function() {} vs function functionName() {}

The difference is that functionOne is only defined when that line is reached, whereas functionTwo is defined as soon as its surrounding function or script is executed, due to hoisting. For example: // Error functionOne(); var functionOne = function() { … Continue reading

Posted in Javascript | Leave a comment

What is the difference between $(window).load and $(document).ready?

here $ is used for define jQuery like $ = jQuery . $(document).ready is jQuery event that is fired when DOM is loaded, so it’s fired when the document structure is ready. $(window).load event is fired after whole content is … Continue reading

Posted in Javascript, jQuery | Leave a comment

How do I install an equalizer in Rhythmbox ubuntu?

open terminal by pressing ctrl+alt+t sudo add-apt-repository ppa:fossfreedom/rhythmbox-plugins sudo apt-get update sudo apt-get install rhythmbox-plugin-equalizer After run this command go to your rythmebox media player in menu Tool > plugin > equilizer check mark this option and close this window. … Continue reading

Posted in Ubuntu | Leave a comment