jQuery: The Write Less, Do More JavaScript Library

 « Return to Thread: Syntax Explanation

Syntax Explanation

by CoffeeAddict :: Rate this Message:

Reply to Author | View in Thread


jQuery right now is still like a foreign language to me.  I have
books, etc. but can someone tell me what's going on here:

    // Create shortcut for internal use
    var $jc = $.jcarousel;

    $jc.fn = $jc.prototype = {
        jcarousel: '0.2.3'
    };

what is prototype, and what is jcarousel: '0.2.3', is that just
setting some other variable's value?

 « Return to Thread: Syntax Explanation