I'm trying to add a method via prototype but getting an error. Any idea what is going wrong?
function Graph() {
// Code
}
Graph.prototype.render = function() {
// Code
}
var test_graph = new Graph;
test_graph.render(); // Returns error that function Graph.render isn't defined.