8

In jsfiddle is possible to use for example jQuery.
But I cannot see any references, for example, to underscore or backbone.js.

If I run this demo I get the error:

Uncaught ReferenceError: _ is not defined 

How can I use underscore.js or backbone.js libraries in jsfiddle?

underscore666
  • 1,719
  • 4
  • 24
  • 37

3 Answers3

16

Add the URL for the required library under the "Add Resources" button on the left hand side.

See http://jsfiddle.net/alnitak/BwHxv/

Alnitak
  • 334,560
  • 70
  • 407
  • 495
3

I'm using a self-made jsfiddle base with log included in the HTML, so you don't have to open developer tools :

Includes Backbone and Underscore

http://jsfiddle.net/drinchev/NL2z9/2/

drinchev
  • 19,201
  • 4
  • 67
  • 93
1

I usually started out from this: http://jsfiddle.net/dandiebolt/auHFG/

This comes up as the first result when searching for "jsfiddle underscore".

janosrusiczki
  • 1,920
  • 2
  • 20
  • 41